[gnome-packagekit] Get the categories sync, not async. Needs to be fixed properly after the release
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-packagekit] Get the categories sync, not async. Needs to be fixed properly after the release
- Date: Tue, 5 May 2009 12:16:55 -0400 (EDT)
commit 566b7b9d0983ab22e0ed7e45814fb0ff8dacb48a
Author: Richard Hughes <richard hughsie com>
Date: Tue May 5 17:15:56 2009 +0100
Get the categories sync, not async. Needs to be fixed properly after the release
---
src/gpk-application.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/gpk-application.c b/src/gpk-application.c
index 8fe8919..ea349a1 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -3237,7 +3237,9 @@ gpk_application_create_group_list_categories (GpkApplication *application)
}
/* get categories supported */
+ pk_client_set_synchronous (application->priv->client_primary, TRUE, NULL);
ret = pk_client_get_categories (application->priv->client_primary, &error);
+ pk_client_set_synchronous (application->priv->client_primary, FALSE, NULL);
if (!ret) {
egg_warning ("failed to get categories: %s", error->message);
g_error_free (error);
@@ -3864,6 +3866,14 @@ gpk_application_init (GpkApplication *application)
if (!ret)
gpk_application_create_group_list_enum (application);
+ /* reset client */
+ ret = pk_client_reset (application->priv->client_primary, &error);
+ if (!ret) {
+ egg_warning ("cannot reset client: %s", error->message);
+ g_error_free (error);
+ goto out_build;
+ }
+
/* get repos, so we can show the full name in the software source box */
ret = pk_client_get_repo_list (application->priv->client_primary, PK_FILTER_ENUM_NONE, &error);
if (!ret) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]