mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
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:
parent
7aa2e50262
commit
641f622bfe
@ -637,6 +637,14 @@ g_application_impl_register (GApplication *application,
|
|||||||
if (rval != 3)
|
if (rval != 3)
|
||||||
{
|
{
|
||||||
/* We are the primary instance. */
|
/* 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;
|
*remote_actions = NULL;
|
||||||
return impl;
|
return impl;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user