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

Zhang, Qiang Z qiang.z.zhang at intel.com
Sat Sep 25 21:05:08 PDT 2010


Hi Richard,

This patch series is fore gnome-packagekit. I have not found the gnome-packagekit mailing list, so send here.

-Thanks
-xiaoqiang

>-----Original Message-----
>From: Zhang, Qiang Z
>Sent: 2010年9月26日 11:04
>To: packagekit at lists.freedesktop.org; hughsient at gmail.com
>Cc: Nashif, Anas; Zhu, Peter J; Liu, Kent; Zhang, Qiang Z
>Subject: [PATCH 1/4] Use pk_task* instead pk_client* to show more info
>
>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