[gnome-settings-daemon] Updates: use the correct variant format



commit 30c860a4ed9e557bd5dc16524fd6ce263ac3bea9
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 12 17:32:41 2011 -0500

    Updates: use the correct variant format
    
    This avoids a critical at startup.  Patch by Adam Dingle,
    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 9193358..4170f43 100644
--- a/plugins/updates/gsd-updates-refresh.c
+++ b/plugins/updates/gsd-updates-refresh.c
@@ -506,8 +506,8 @@ session_presence_signal_cb (GDBusProxy *proxy,
         if (g_strcmp0 (signal_name, "StatusChanged") != 0)
                 return;
 
-        /* map stauts code into boolean */
-        g_variant_get (parameters, "(u)", &status);
+        /* map status code into boolean */
+        g_variant_get (parameters, "u", &status);
         refresh->priv->session_idle = (status == PRESENCE_STATUS_IDLE);
         g_debug ("setting is_idle %i",
                  refresh->priv->session_idle);



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