Commit 4a8e097d authored by Jan Djärv's avatar Jan Djärv

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

add a blank entry so it doesn't collapse into nothing.
parent 653d1554
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.
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment