Mercurial > emacs
changeset 106161:0ea716305b13
gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
add a blank entry so it doesn't collapse into nothing.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Fri, 20 Nov 2009 08:54:18 +0000 |
parents | b27aeda9c1fd |
children | 4cee82a6f25b |
files | src/ChangeLog src/gtkutil.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Fri Nov 20 08:22:32 2009 +0000 +++ b/src/ChangeLog Fri Nov 20 08:54:18 2009 +0000 @@ -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.
--- a/src/gtkutil.c Fri Nov 20 08:22:32 2009 +0000 +++ b/src/gtkutil.c Fri Nov 20 08:54:18 2009 +0000 @@ -2477,6 +2477,10 @@ /* 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;