diff options
author | Ted Gould <ted@gould.cx> | 2011-07-12 10:46:35 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-07-12 10:46:35 -0500 |
commit | 1838bfc6981fec3b0131e28cdbddb9cb4e4b0ec8 (patch) | |
tree | 98186f9a7c5daedbcc867d69c3da53b919c7c455 /libindicator | |
parent | 5de36e3edb6286f9768ac6aa3c96616b6522efe3 (diff) | |
download | libayatana-indicator-1838bfc6981fec3b0131e28cdbddb9cb4e4b0ec8.tar.gz libayatana-indicator-1838bfc6981fec3b0131e28cdbddb9cb4e4b0ec8.tar.bz2 libayatana-indicator-1838bfc6981fec3b0131e28cdbddb9cb4e4b0ec8.zip |
Adding in the shutdown function
Diffstat (limited to 'libindicator')
-rw-r--r-- | libindicator/indicator-service.c | 2 | ||||
-rw-r--r-- | libindicator/indicator-service.xml | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libindicator/indicator-service.c b/libindicator/indicator-service.c index 5a15d5e..d7ab375 100644 --- a/libindicator/indicator-service.c +++ b/libindicator/indicator-service.c @@ -405,6 +405,8 @@ bus_method_call (GDBusConnection * connection, const gchar * sender, const gchar retval = bus_watch(service, sender); } else if (g_strcmp0(method, "UnWatch") == 0) { unwatch_core(service, sender); + } else if (g_strcmp0(method, "Shutdown") == 0) { + g_signal_emit(G_OBJECT(service), signals[SHUTDOWN], 0, TRUE); } else { g_warning("Calling method '%s' on the indicator service and it's unknown", method); } diff --git a/libindicator/indicator-service.xml b/libindicator/indicator-service.xml index 6bd7d80..71ef4df 100644 --- a/libindicator/indicator-service.xml +++ b/libindicator/indicator-service.xml @@ -13,6 +13,7 @@ <method name="UnWatch"> <annotation name="org.freedesktop.DBus.GLib.Async" value="true" /> </method> + <method name="Shutdown" /> <!-- Signals --> <!-- None currently --> |