1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 04:30:45 -08:00

gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty

add a blank entry so it doesn't collapse into nothing.
This commit is contained in:
Jan Djärv 2009-11-20 08:54:18 +00:00
parent 653d15547a
commit 4a8e097d4e
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
* gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
add a blank entry so it doesn't collapse into nothing.
2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
* lread.c (Funintern): Comment out last change.

View file

@ -2477,6 +2477,10 @@ xg_update_menubar (menubar, f, list, iter, pos, val,
/* Item(s) have been removed. Remove all remaining items. */
xg_destroy_widgets (iter);
/* Add a blank entry so the menubar doesn't collapse to nothing. */
gtk_menu_shell_insert (GTK_MENU_SHELL (menubar),
gtk_menu_item_new_with_label (""),
0);
/* All updated. */
val = 0;
iter = 0;