[gnome-settings-daemon] updates: Fix GVariant format



commit fbec073f7f612f1df0ab7237b96084061a8fc70f
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 14 09:05:36 2011 -0400

    updates: Fix GVariant format
    
    The patch in 30c860a4ed9e557bd5dc16524fd6ce263ac3bea9
    was mis-applied.
    https://bugzilla.gnome.org/show_bug.cgi?id=644571

 plugins/updates/gsd-updates-refresh.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/updates/gsd-updates-refresh.c b/plugins/updates/gsd-updates-refresh.c
index 4170f43..15e6917 100644
--- a/plugins/updates/gsd-updates-refresh.c
+++ b/plugins/updates/gsd-updates-refresh.c
@@ -507,7 +507,7 @@ session_presence_signal_cb (GDBusProxy *proxy,
                 return;
 
         /* map status code into boolean */
-        g_variant_get (parameters, "u", &status);
+        g_variant_get (parameters, "(u)", &status);
         refresh->priv->session_idle = (status == PRESENCE_STATUS_IDLE);
         g_debug ("setting is_idle %i",
                  refresh->priv->session_idle);
@@ -578,7 +578,7 @@ gsd_updates_refresh_init (GsdUpdatesRefresh *refresh)
                                   refresh);
                 status = g_dbus_proxy_get_cached_property (refresh->priv->proxy_session,
                                                            "status");
-                g_variant_get (status, "(u)", &status_code);
+                g_variant_get (status, "u", &status_code);
                 refresh->priv->session_idle = (status_code == PRESENCE_STATUS_IDLE);
                 g_variant_unref (status);
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]