aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-06-29 18:12:08 -0500
committerTed Gould <ted@gould.cx>2010-06-29 18:12:08 -0500
commitaa58b4c6b6460a8f9e49953447994b479b9f1705 (patch)
tree932ce0844b96be5272c93ed29f9de7f966100a3b
parent778e00d98087fc00329b1ddd28dd46df4f297d8f (diff)
downloadlibdbusmenu-aa58b4c6b6460a8f9e49953447994b479b9f1705.tar.gz
libdbusmenu-aa58b4c6b6460a8f9e49953447994b479b9f1705.tar.bz2
libdbusmenu-aa58b4c6b6460a8f9e49953447994b479b9f1705.zip
Block separators from getting new submenus
-rw-r--r--libdbusmenu-gtk/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c
index c73c90f..a46aef3 100644
--- a/libdbusmenu-gtk/client.c
+++ b/libdbusmenu-gtk/client.c
@@ -503,6 +503,7 @@ new_child (DbusmenuMenuitem * mi, DbusmenuMenuitem * child, guint position, Dbus
#endif
if (dbusmenu_menuitem_get_root(mi)) { return; }
+ if (g_strcmp0(dbusmenu_menuitem_property_get(mi, DBUSMENU_MENUITEM_PROP_TYPE), DBUSMENU_CLIENT_TYPES_SEPARATOR) == 0) { return; }
gpointer ann_menu = g_object_get_data(G_OBJECT(mi), data_menu);
GtkMenu * menu = GTK_MENU(ann_menu);