gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already has a parent.
This commit is contained in:
parent
e779144743
commit
473a99b7c9
2 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
|
||||
has a parent.
|
||||
|
||||
* Makefile.in: If AUTO_DEPEND is defined, make gcc generate
|
||||
dependency files in deps/. Include those files into Makefile.
|
||||
|
||||
|
|
|
@ -3001,6 +3001,9 @@ xg_update_frame_menubar (f)
|
|||
if (!x->menubar_widget || GTK_WIDGET_MAPPED (x->menubar_widget))
|
||||
return 0;
|
||||
|
||||
if (x->menubar_widget && gtk_widget_get_parent (x->menubar_widget))
|
||||
return 0; /* Already done this, happens for frames created invisible. */
|
||||
|
||||
BLOCK_INPUT;
|
||||
|
||||
gtk_box_pack_start (GTK_BOX (x->vbox_widget), x->menubar_widget,
|
||||
|
|
Loading…
Add table
Reference in a new issue