From 641f622bfe72866baa52dbd1044b7be2b6271999 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Thu, 28 Oct 2010 23:06:53 -0400 Subject: [PATCH] GApplication: emit a signal when starting up Send a signal to the bus when registration is successful and we are the primary instance. --- gio/gapplicationimpl-dbus.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gio/gapplicationimpl-dbus.c b/gio/gapplicationimpl-dbus.c index feee24f6a..1aaa3b802 100644 --- a/gio/gapplicationimpl-dbus.c +++ b/gio/gapplicationimpl-dbus.c @@ -637,6 +637,14 @@ g_application_impl_register (GApplication *application, if (rval != 3) { /* We are the primary instance. */ + g_dbus_connection_emit_signal (impl->session_bus, + NULL, + impl->object_path, + "org.gtk.Application", + "Hello", + g_variant_new ("(s)", + impl->bus_name), + NULL); *remote_actions = NULL; return impl; }