diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-08-11 05:01:27 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-08-11 05:01:27 +0800 |
commit | 0e5939dc90c938845107afec2276c5e404802bf9 (patch) | |
tree | 919befa8175c8ba58a7822d91303f4145f790bf7 | |
parent | 07ad68850a29b0e3f8c9fd6da3552cd2fab70db6 (diff) | |
download | gsoc2013-evolution-0e5939dc90c938845107afec2276c5e404802bf9.tar.gz gsoc2013-evolution-0e5939dc90c938845107afec2276c5e404802bf9.tar.zst gsoc2013-evolution-0e5939dc90c938845107afec2276c5e404802bf9.zip |
last_item_separator shouldn't get reset if the item is hidden.
2001-08-10 Christopher James Lahey <clahey@ximian.com>
* gal/widgets/e-popup-menu.c (e_popup_menu_create):
last_item_separator shouldn't get reset if the item is hidden.
svn path=/trunk/; revision=11898
-rw-r--r-- | widgets/misc/e-popup-menu.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/widgets/misc/e-popup-menu.c b/widgets/misc/e-popup-menu.c index 82f0a74fc6..912206fc34 100644 --- a/widgets/misc/e-popup-menu.c +++ b/widgets/misc/e-popup-menu.c @@ -115,7 +115,7 @@ e_popup_menu_create (EPopupMenu *menu_list, guint32 disable_mask, guint32 hide_m item = make_item (menu, seperator ? "" : L_(menu_list[i].name), menu_list[i].pixname); gtk_menu_append (menu, item); - + if (!menu_list[i].submenu) { if (menu_list[i].fn) gtk_signal_connect (GTK_OBJECT (item), "activate", @@ -124,21 +124,21 @@ e_popup_menu_create (EPopupMenu *menu_list, guint32 disable_mask, guint32 hide_m } else { /* submenu */ GtkMenu *submenu; - + submenu = e_popup_menu_create (menu_list[i].submenu, disable_mask, hide_mask, closure); - + gtk_menu_item_set_submenu (GTK_MENU_ITEM (item), GTK_WIDGET (submenu)); } - + if (menu_list[i].disable_mask & disable_mask) gtk_widget_set_sensitive (item, FALSE); - + gtk_widget_show (item); + + last_item_seperator = seperator; } - - last_item_seperator = seperator; } - + return menu; } |