From e986476c83c3e647dab067087865f895cd32a899 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 27 Jun 2013 13:07:52 -0500 Subject: only show the restart or hibernate menuitems if login1 says these features are available --- src/backend-dbus/actions.c | 6 ++---- 1 file 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) { -- cgit v1.2.3