[packagekit] [PATCH 1/4] Use pk_task* instead pk_client* to show more info

Zhang Qiang qiang.z.zhang at intel.com
Sat Sep 25 20:03:44 PDT 2010


This patch use pk_task_refresh_cache_async instead of
pk_client_refresh_cache_async in gpk_application_menu_refresh_cb while
user execute refresh operation. More info dialog can be show to user,
such as signature info dialog would be show to user if new signature is
needed for special repo.
---
 src/gpk-application.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gpk-application.c b/src/gpk-application.c
index f6daea7..40207f9 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -2919,7 +2919,7 @@ static void
 gpk_application_menu_refresh_cb (GtkAction *action, GpkApplication *application)
 {
 	g_return_if_fail (GPK_IS_APPLICATION (application));
-	pk_client_refresh_cache_async (PK_CLIENT(application->priv->task), TRUE, application->priv->cancellable,
+	pk_task_refresh_cache_async (application->priv->task, TRUE, application->priv->cancellable,
 				       (PkProgressCallback) gpk_application_progress_cb, application,
 				       (GAsyncReadyCallback) gpk_application_refresh_cache_cb, application);
 }
-- 
1.7.2.2




More information about the PackageKit mailing list