aboutsummaryrefslogtreecommitdiff
path: root/src/session-dbus.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-08-10 18:01:29 +0100
committerConor Curran <conor.curran@canonical.com>2011-08-10 18:01:29 +0100
commit357374acb2a641a9c5d70cb6149293a0a07770f3 (patch)
tree8c8ac5869ebb4908f537e05f28db27261dabd180 /src/session-dbus.c
parenta1a7357b58d182e077ebfe8fb11c083e5eb18839 (diff)
parent853ad495b863c179792044f1a74e8556d04e32db (diff)
downloadayatana-indicator-session-357374acb2a641a9c5d70cb6149293a0a07770f3.tar.gz
ayatana-indicator-session-357374acb2a641a9c5d70cb6149293a0a07770f3.tar.bz2
ayatana-indicator-session-357374acb2a641a9c5d70cb6149293a0a07770f3.zip
merged the lightdb dbus changes and the apt restartrequired awareness
Diffstat (limited to 'src/session-dbus.c')
-rw-r--r--src/session-dbus.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/session-dbus.c b/src/session-dbus.c
index 9aa75ef..1cf73ac 100644
--- a/src/session-dbus.c
+++ b/src/session-dbus.c
@@ -293,3 +293,25 @@ session_dbus_set_user_menu_visibility (SessionDbus* session,
}
}
}
+
+void session_dbus_restart_required (SessionDbus* session)
+{
+ SessionDbusPrivate * priv = SESSION_DBUS_GET_PRIVATE(session);
+ GError * error = NULL;
+
+ if (priv->bus != NULL) {
+ g_dbus_connection_emit_signal (priv->bus,
+ NULL,
+ INDICATOR_SESSION_SERVICE_DBUS_OBJECT,
+ INDICATOR_SESSION_SERVICE_DBUS_IFACE,
+ "RebootRequired",
+ NULL,
+ &error);
+
+ if (error != NULL) {
+ g_warning("Unable to send reboot-required signal: %s", error->message);
+ g_error_free(error);
+ }
+ }
+
+}