aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-05-12 17:18:42 -0500
committerTed Gould <ted@canonical.com>2009-05-12 17:18:42 -0500
commitb23056f055b443925544089bd4b822b152fcf039 (patch)
tree84265a3a1dc5d46ad3b493d902a4b23e60db7626 /libdbusmenu-glib
parent2a8ccfdd673c5e883754768f2d77515e35b24454 (diff)
downloadlibdbusmenu-b23056f055b443925544089bd4b822b152fcf039.tar.gz
libdbusmenu-b23056f055b443925544089bd4b822b152fcf039.tar.bz2
libdbusmenu-b23056f055b443925544089bd4b822b152fcf039.zip
Signaling that the layout has changed when there are children added or removed
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index 95fa1d9..62d0505 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -301,6 +301,8 @@ static void
menuitem_child_added (DbusmenuMenuitem * parent, DbusmenuMenuitem * child, DbusmenuServer * server)
{
menuitem_signals_create(child, server);
+ /* TODO: We probably need to group the layout update signals to make the number more reasonble. */
+ g_signal_emit(G_OBJECT(server), signals[LAYOUT_UPDATE], 0, TRUE);
return;
}
@@ -308,6 +310,8 @@ static void
menuitem_child_removed (DbusmenuMenuitem * parent, DbusmenuMenuitem * child, DbusmenuServer * server)
{
menuitem_signals_remove(child, server);
+ /* TODO: We probably need to group the layout update signals to make the number more reasonble. */
+ g_signal_emit(G_OBJECT(server), signals[LAYOUT_UPDATE], 0, TRUE);
return;
}