aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/server.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-01-18 12:39:57 -0600
committerTed Gould <ted@gould.cx>2011-01-18 12:39:57 -0600
commit88a9ad428716c028fc8de094b814623af07adec6 (patch)
tree7bc2519259c78f23e8af12ab204df9330be685fd /libdbusmenu-glib/server.c
parent41037f771b0b4b30ab225a4515565c6ea1af0694 (diff)
downloadlibdbusmenu-88a9ad428716c028fc8de094b814623af07adec6.tar.gz
libdbusmenu-88a9ad428716c028fc8de094b814623af07adec6.tar.bz2
libdbusmenu-88a9ad428716c028fc8de094b814623af07adec6.zip
Send a LayoutUpdated when we register the object.
Diffstat (limited to 'libdbusmenu-glib/server.c')
-rw-r--r--libdbusmenu-glib/server.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index 100eb14..51a47b2 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -506,6 +506,19 @@ register_object (DbusmenuServer * server)
if (error != NULL) {
g_warning("Unable to register object on bus: %s", error->message);
g_error_free(error);
+ return;
+ }
+
+ /* If we've got it registered let's tell everyone about it */
+ g_signal_emit(G_OBJECT(server), signals[LAYOUT_UPDATED], 0, priv->layout_revision, 0, TRUE);
+ if (priv->dbusobject != NULL && priv->bus != NULL) {
+ g_dbus_connection_emit_signal(priv->bus,
+ NULL,
+ priv->dbusobject,
+ DBUSMENU_INTERFACE,
+ "LayoutUpdated",
+ g_variant_new("(ui)", priv->layout_revision, 0),
+ NULL);
}
return;