diff options
author | Ted Gould <ted@gould.cx> | 2010-06-29 18:12:08 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-06-29 18:12:08 -0500 |
commit | aa58b4c6b6460a8f9e49953447994b479b9f1705 (patch) | |
tree | 932ce0844b96be5272c93ed29f9de7f966100a3b | |
parent | 778e00d98087fc00329b1ddd28dd46df4f297d8f (diff) | |
download | libdbusmenu-aa58b4c6b6460a8f9e49953447994b479b9f1705.tar.gz libdbusmenu-aa58b4c6b6460a8f9e49953447994b479b9f1705.tar.bz2 libdbusmenu-aa58b4c6b6460a8f9e49953447994b479b9f1705.zip |
Block separators from getting new submenus
-rw-r--r-- | libdbusmenu-gtk/client.c | 1 |
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); |