[gnome-control-center] info: use the correct return type for getting dbus properties
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] info: use the correct return type for getting dbus properties
- Date: Tue, 15 Feb 2011 18:52:04 +0000 (UTC)
commit 0be178ba6bbc80c0460bf8941af7bc7498a89ef1
Author: William Jon McCann <jmccann redhat com>
Date: Tue Feb 15 13:50:46 2011 -0500
info: use the correct return type for getting dbus properties
Makes getting the session experience property work.
panels/info/cc-info-panel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index f9b6be0..10f39db 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -385,7 +385,7 @@ get_graphics_experience (CcInfoPanel *self)
"org.freedesktop.DBus.Properties",
"Get",
g_variant_new ("(ss)", "org.gnome.SessionManager", "fallback"),
- (GVariantType*)"v",
+ (GVariantType*)"(v)",
0,
-1,
NULL, &error)))
@@ -395,7 +395,7 @@ get_graphics_experience (CcInfoPanel *self)
return NULL;
}
- g_variant_get (reply, "v", &reply_bool);
+ g_variant_get (reply, "(v)", &reply_bool);
is_fallback = g_variant_get_boolean (reply_bool);
experience_str = g_strdup (is_fallback ? _("Fallback") : _("Default"));
g_variant_unref (reply_bool);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]