diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-08-31 13:19:38 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-08-31 13:19:38 +0100 |
commit | 254ca429137d15b4814b171c96a7d92f1a46b2da (patch) | |
tree | 7df6860b436a5ca72b6fbbceb04c266e7133d48e /src | |
parent | e1a933792dbf2114d66a3132d2ce29107ed25130 (diff) | |
download | ayatana-indicator-session-254ca429137d15b4814b171c96a7d92f1a46b2da.tar.gz ayatana-indicator-session-254ca429137d15b4814b171c96a7d92f1a46b2da.tar.bz2 ayatana-indicator-session-254ca429137d15b4814b171c96a7d92f1a46b2da.zip |
restart signal actually being sent now properly
Diffstat (limited to 'src')
-rw-r--r-- | src/indicator-session.c | 3 | ||||
-rw-r--r-- | src/session-dbus.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c index 0f44a36..3b5a7c3 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -497,8 +497,7 @@ receive_signal (GDBusProxy * proxy, &self->users); } } - else if (g_strcmp0(signal_name, "RebootRequired") == 0) { - // TODO waiting on design to give me a name. + else if (g_strcmp0(signal_name, "RestartRequired") == 0) { g_debug ("Reboot required, icon changed to %s", ICON_RESTART); self->devices.image = indicator_image_helper (ICON_RESTART); } diff --git a/src/session-dbus.c b/src/session-dbus.c index 1cf73ac..232e440 100644 --- a/src/session-dbus.c +++ b/src/session-dbus.c @@ -300,11 +300,13 @@ void session_dbus_restart_required (SessionDbus* session) GError * error = NULL; if (priv->bus != NULL) { + g_debug("About to send RebootRequired signal"); + g_dbus_connection_emit_signal (priv->bus, NULL, INDICATOR_SESSION_SERVICE_DBUS_OBJECT, INDICATOR_SESSION_SERVICE_DBUS_IFACE, - "RebootRequired", + "RestartRequired", NULL, &error); |