From 1838bfc6981fec3b0131e28cdbddb9cb4e4b0ec8 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 12 Jul 2011 10:46:35 -0500 Subject: Adding in the shutdown function --- libindicator/indicator-service.c | 2 ++ libindicator/indicator-service.xml | 1 + 2 files changed, 3 insertions(+) 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 @@ + -- cgit v1.2.3