GApplication: emit a signal when starting up

Send a signal to the bus when registration is successful and we are the
primary instance.
This commit is contained in:
Ryan Lortie 2010-10-28 23:06:53 -04:00
parent 7aa2e50262
commit 641f622bfe

View File

@ -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;
}