projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aa2e50
)
GApplication: emit a signal when starting up
author
Ryan Lortie
<desrt@desrt.ca>
Fri, 29 Oct 2010 03:06:53 +0000
(23:06 -0400)
committer
Ryan Lortie
<desrt@desrt.ca>
Fri, 29 Oct 2010 03:06:53 +0000
(23:06 -0400)
Send a signal to the bus when registration is successful and we are the
primary instance.
gio/gapplicationimpl-dbus.c
patch
|
blob
|
history
diff --git
a/gio/gapplicationimpl-dbus.c
b/gio/gapplicationimpl-dbus.c
index
feee24f
..
1aaa3b8
100644
(file)
--- 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;
}