diff options
author | Ted Gould <ted@gould.cx> | 2011-01-26 16:53:54 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-01-26 16:53:54 -0600 |
commit | c6da3667cae61d1606eb66e6b7be01c2cbf9cbff (patch) | |
tree | f2526ce88b7c6dcccda0928a58202dc788e000bc /libdbusmenu-gtk | |
parent | e5078ed1027e8c466d081183eeee6888b10ef510 (diff) | |
download | libdbusmenu-c6da3667cae61d1606eb66e6b7be01c2cbf9cbff.tar.gz libdbusmenu-c6da3667cae61d1606eb66e6b7be01c2cbf9cbff.tar.bz2 libdbusmenu-c6da3667cae61d1606eb66e6b7be01c2cbf9cbff.zip |
Only activating on menu bars.
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r-- | libdbusmenu-gtk/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-gtk/parser.c b/libdbusmenu-gtk/parser.c index 27ac926..5dea9de 100644 --- a/libdbusmenu-gtk/parser.c +++ b/libdbusmenu-gtk/parser.c @@ -118,7 +118,7 @@ parse_menu_structure_helper (GtkWidget * widget, RecurseContext * recurse) * * Note that this will not force menuitems in submenus to be updated as well. */ - if (recurse->parent == NULL) { + if (recurse->parent == NULL && GTK_IS_MENU_BAR(widget)) { GList *children = gtk_container_get_children (GTK_CONTAINER (widget)); for (; children != NULL; children = children->next) { |