[gnome-control-center] info: Adapt to PackageKit API breakage
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] info: Adapt to PackageKit API breakage
- Date: Sun, 22 Jul 2012 17:00:05 +0000 (UTC)
commit 76add03e25d87da3c99b1ad1b29081b9195f8d69
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jul 22 12:59:15 2012 -0400
info: Adapt to PackageKit API breakage
PackageKit 0.8.x has broken several APIs that we are using here.
panels/info/cc-info-panel.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index d9087e8..f678f1c 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -1830,7 +1830,7 @@ on_pk_get_tid_ready (GObject *source,
return;
}
- g_variant_get (result, "(s)", &tid);
+ g_variant_get (result, "(o)", &tid);
self->priv->pk_transaction_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
G_DBUS_PROXY_FLAGS_NONE,
@@ -1856,7 +1856,7 @@ on_pk_get_tid_ready (GObject *source,
g_dbus_proxy_call (self->priv->pk_transaction_proxy,
"GetUpdates",
- g_variant_new ("(s)", "none"),
+ g_variant_new ("(t)", 1), /* PK_FILTER_ENUM_NONE */
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
@@ -1872,7 +1872,7 @@ refresh_updates (CcInfoPanel *self)
g_assert (self->priv->pk_proxy != NULL);
g_dbus_proxy_call (self->priv->pk_proxy,
- "GetTid",
+ "CreateTransaction",
NULL,
G_DBUS_CALL_FLAGS_NONE,
-1,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]