aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2016-04-08 22:34:13 +0200
committerRobert Tari <robert@tari.in>2021-06-22 23:20:07 +0200
commitdd4e19f35bfe81395d20f3a8f52805ab138a5c1e (patch)
tree4ee54457f9012d18487ff15f49d3956c532c8b7a /src
parentdf4c24eb24ae2b58b772b51e08b7d7f338f25140 (diff)
downloadayatana-indicator-session-dd4e19f35bfe81395d20f3a8f52805ab138a5c1e.tar.gz
ayatana-indicator-session-dd4e19f35bfe81395d20f3a8f52805ab138a5c1e.tar.bz2
ayatana-indicator-session-dd4e19f35bfe81395d20f3a8f52805ab138a5c1e.zip
Ensure we request the UI to verify restart availability when unity proxy connects/disconnects
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));
}