info: use the correct return type for getting dbus properties
Makes getting the session experience property work.
This commit is contained in:
parent
9ad9dd895a
commit
0be178ba6b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue