info: use the correct return type for getting dbus properties

Makes getting the session experience property work.
This commit is contained in:
William Jon McCann 2011-02-15 13:50:46 -05:00
parent 9ad9dd895a
commit 0be178ba6b

View file

@ -385,7 +385,7 @@ get_graphics_experience (CcInfoPanel *self)
"org.freedesktop.DBus.Properties", "org.freedesktop.DBus.Properties",
"Get", "Get",
g_variant_new ("(ss)", "org.gnome.SessionManager", "fallback"), g_variant_new ("(ss)", "org.gnome.SessionManager", "fallback"),
(GVariantType*)"v", (GVariantType*)"(v)",
0, 0,
-1, -1,
NULL, &error))) NULL, &error)))
@ -395,7 +395,7 @@ get_graphics_experience (CcInfoPanel *self)
return NULL; return NULL;
} }
g_variant_get (reply, "v", &reply_bool); g_variant_get (reply, "(v)", &reply_bool);
is_fallback = g_variant_get_boolean (reply_bool); is_fallback = g_variant_get_boolean (reply_bool);
experience_str = g_strdup (is_fallback ? _("Fallback") : _("Default")); experience_str = g_strdup (is_fallback ? _("Fallback") : _("Default"));
g_variant_unref (reply_bool); g_variant_unref (reply_bool);