aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-06-27 13:07:52 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-06-27 13:07:52 -0500
commite986476c83c3e647dab067087865f895cd32a899 (patch)
tree63c7b24009420f5c2f47cc244070256187ff51a1 /src
parent951592e1349e863b721ca32273577e6f1b517d13 (diff)
downloadayatana-indicator-session-e986476c83c3e647dab067087865f895cd32a899.tar.gz
ayatana-indicator-session-e986476c83c3e647dab067087865f895cd32a899.tar.bz2
ayatana-indicator-session-e986476c83c3e647dab067087865f895cd32a899.zip
only show the restart or hibernate menuitems if login1 says these features are available
Diffstat (limited to 'src')
-rw-r--r--src/backend-dbus/actions.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c
index a74a524..3f0e6ec 100644
--- a/src/backend-dbus/actions.c
+++ b/src/backend-dbus/actions.c
@@ -160,8 +160,7 @@ on_can_suspend_ready (GObject * o, GAsyncResult * res, gpointer gself)
{
priv_t * p = INDICATOR_SESSION_ACTIONS_DBUS(gself)->priv;
- const gboolean b = !g_strcmp0 (str, "yes") ||
- !g_strcmp0 (str, "challenge");
+ const gboolean b = !g_strcmp0 (str, "yes");
if (p->can_suspend != b)
{
@@ -188,8 +187,7 @@ on_can_hibernate_ready (GObject * o, GAsyncResult * res, gpointer gself)
{
priv_t * p = INDICATOR_SESSION_ACTIONS_DBUS(gself)->priv;
- const gboolean b = !g_strcmp0 (str, "yes") ||
- !g_strcmp0 (str, "challenge");
+ const gboolean b = !g_strcmp0 (str, "yes");
if (p->can_hibernate != b)
{