aboutsummaryrefslogtreecommitdiff
path: root/src/backend-dbus/actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend-dbus/actions.c')
-rw-r--r--src/backend-dbus/actions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c
index 88caf80..c83d352 100644
--- a/src/backend-dbus/actions.c
+++ b/src/backend-dbus/actions.c
@@ -414,6 +414,9 @@ my_can_reboot (IndicatorSessionActions * actions)
if (g_settings_get_boolean (p->indicator_settings, "suppress-restart-menuitem"))
return FALSE;
+ if (g_settings_get_boolean (p->indicator_settings, "force-restart-menuitem"))
+ return TRUE;
+
/* Shutdown and Restart are the same dialog prompt in Unity,
so disable the redundant 'Restart' menuitem in that mode */
if (!g_settings_get_boolean (p->indicator_settings, "suppress-shutdown-menuitem"))
@@ -1184,6 +1187,8 @@ indicator_session_actions_dbus_init (IndicatorSessionActionsDbus * self)
G_CALLBACK(indicator_session_actions_notify_can_reboot), self);
g_signal_connect_swapped (s, "changed::suppress-shutdown-menuitem",
G_CALLBACK(indicator_session_actions_notify_can_reboot), self);
+ g_signal_connect_swapped (s, "changed::force-restart-menuitem",
+ G_CALLBACK(indicator_session_actions_notify_can_reboot), self);
p->indicator_settings = s;
gnome_screen_saver_proxy_new_for_bus (G_BUS_TYPE_SESSION,