Commit 473a99b7 authored by Jan Djärv's avatar Jan Djärv

gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already has a parent.

parent e7791447
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,
......
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