diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-01-20 21:03:03 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-01-20 21:03:03 -0500 |
commit | 4ef0a2886c4d4865a453ee32656937eb37669421 (patch) | |
tree | 69a464310d4ff98b63a3a30a825dafaed9f55525 /libdbusmenu-glib/server.c | |
parent | 06dd3e27c76990fc2a2f4404561586f9bdc32243 (diff) | |
parent | de9872351ee2646f577620956c6844c428cb2760 (diff) | |
download | libdbusmenu-4ef0a2886c4d4865a453ee32656937eb37669421.tar.gz libdbusmenu-4ef0a2886c4d4865a453ee32656937eb37669421.tar.bz2 libdbusmenu-4ef0a2886c4d4865a453ee32656937eb37669421.zip |
releasing version 0.3.93-0ubuntu1
Diffstat (limited to 'libdbusmenu-glib/server.c')
-rw-r--r-- | libdbusmenu-glib/server.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index 6be2a60..095f333 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; |