[glib] GApplication: emit a signal when starting up
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GApplication: emit a signal when starting up
- Date: Fri, 29 Oct 2010 03:07:34 +0000 (UTC)
commit 641f622bfe72866baa52dbd1044b7be2b6271999
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Oct 28 23:06:53 2010 -0400
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 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gio/gapplicationimpl-dbus.c b/gio/gapplicationimpl-dbus.c
index feee24f..1aaa3b8 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]