aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend-dbus/actions.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c
index b4ea42d..88caf80 100644
--- a/src/backend-dbus/actions.c
+++ b/src/backend-dbus/actions.c
@@ -369,6 +369,9 @@ on_end_session_dialog_proxy_ready (GObject * o G_GNUC_UNUSED, GAsyncResult * res
{
INDICATOR_SESSION_ACTIONS_DBUS(gself)->priv->end_session_dialog = end_session_dialog;
+ g_signal_connect_swapped (end_session_dialog, "notify::g-name-owner",
+ G_CALLBACK(indicator_session_actions_notify_can_switch), gself);
+
indicator_session_actions_notify_can_prompt (INDICATOR_SESSION_ACTIONS(gself));
indicator_session_actions_notify_can_reboot (INDICATOR_SESSION_ACTIONS(gself));
}