[gnome-packagekit] Fix compile now that pk_client_get_cached_objects() has gone
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-packagekit] Fix compile now that pk_client_get_cached_objects() has gone
- Date: Tue, 30 Jun 2009 13:52:54 +0000 (UTC)
commit 26c1e7efee63c3f4ec06b42f740ffd6fc6266bc7
Author: Richard Hughes <richard hughsie com>
Date: Tue Jun 30 13:13:35 2009 +0100
Fix compile now that pk_client_get_cached_objects() has gone
src/gpk-application.c | 6 +++++-
src/gpk-check-update.c | 6 +++++-
src/gpk-log.c | 6 +++++-
3 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/src/gpk-application.c b/src/gpk-application.c
index 501c55c..041ff48 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -3158,7 +3158,11 @@ gpk_application_categories_finished (GpkApplication *application)
}
/* get return values */
- list = pk_client_get_cached_objects (application->priv->client_primary);
+#if PK_CHECK_VERSION(0,5,0)
+ list = pk_client_get_category_list (application->priv->client_primary);
+#else
+ list = pk_client_get_cached_objects (application->priv->client_primary); /* removed in 0.5.x */
+#endif
if (list->len == 0) {
egg_warning ("no results from GetCategories");
goto out;
diff --git a/src/gpk-check-update.c b/src/gpk-check-update.c
index 51b8099..c2d386b 100644
--- a/src/gpk-check-update.c
+++ b/src/gpk-check-update.c
@@ -1453,7 +1453,11 @@ gpk_check_update_finished_cb (PkClient *client, PkExitEnum exit_enum, guint runt
/* get-upgrades */
if (role == PK_ROLE_ENUM_GET_DISTRO_UPGRADES &&
exit_enum == PK_EXIT_ENUM_SUCCESS) {
- array = pk_client_get_cached_objects (client);
+#if PK_CHECK_VERSION(0,5,0)
+ array = pk_client_get_distro_upgrade_list (client);
+#else
+ array = pk_client_get_cached_objects (client); /* removed in 0.5.x */
+#endif
gpk_check_update_process_distro_upgrades (cupdate, array);
g_object_unref (array);
}
diff --git a/src/gpk-log.c b/src/gpk-log.c
index 5770b5e..a5b55de 100644
--- a/src/gpk-log.c
+++ b/src/gpk-log.c
@@ -582,7 +582,11 @@ gpk_log_refresh (void)
/* get the list */
if (transactions != NULL)
g_object_unref (transactions);
- transactions = pk_client_get_cached_objects (client);
+#if PK_CHECK_VERSION(0,5,0)
+ transactions = pk_client_get_transaction_list (client);
+#else
+ transactions = pk_client_get_cached_objects (client); /* removed in 0.5.x */
+#endif
gpk_log_refilter ();
out:
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]