[gnome-control-center] info: correctly detect the fallback session
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] info: correctly detect the fallback session
- Date: Thu, 17 Feb 2011 23:22:25 +0000 (UTC)
commit 4f6e642670e84bc57f8d3df9bf9eb1f41e979b8c
Author: William Jon McCann <jmccann redhat com>
Date: Thu Feb 17 18:06:26 2011 -0500
info: correctly detect the fallback session
panels/info/cc-info-panel.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index b2c7e66..2a2d358 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -377,7 +377,7 @@ get_current_is_fallback (CcInfoPanel *self)
{
GError *error;
GVariant *reply;
- GVariant *reply_bool;
+ GVariant *reply_str;
gboolean is_fallback;
error = NULL;
@@ -386,7 +386,7 @@ get_current_is_fallback (CcInfoPanel *self)
"/org/gnome/SessionManager",
"org.freedesktop.DBus.Properties",
"Get",
- g_variant_new ("(ss)", "org.gnome.SessionManager", "fallback"),
+ g_variant_new ("(ss)", "org.gnome.SessionManager", "session-name"),
(GVariantType*)"(v)",
0,
-1,
@@ -397,9 +397,9 @@ get_current_is_fallback (CcInfoPanel *self)
return FALSE;
}
- g_variant_get (reply, "(v)", &reply_bool);
- is_fallback = g_variant_get_boolean (reply_bool);
- g_variant_unref (reply_bool);
+ g_variant_get (reply, "(v)", &reply_str);
+ is_fallback = g_strcmp0 ("gnome-fallback", g_variant_get_string (reply_str, NULL)) == 0;
+ g_variant_unref (reply_str);
g_variant_unref (reply);
return is_fallback;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]