# HG changeset patch # User Fred Pierresteguy # Date 765125446 0 # Node ID f5b781f337895db27f47144fb73a38a8c99505d4 # Parent bb11213734d68729619eeb5589d4959d351c0f5b (set_frame_menubar): New arg, first_time. Don't update the menubar the first time it is created via x_window. (initialize_frame_menubar): Pass 1 to set_frame_menubar. diff -r bb11213734d6 -r f5b781f33789 src/xmenu.c --- a/src/xmenu.c Thu Mar 31 14:49:42 1994 +0000 +++ b/src/xmenu.c Thu Mar 31 14:50:46 1994 +0000 @@ -1145,8 +1145,9 @@ } void -set_frame_menubar (f) +set_frame_menubar (f, first_time) FRAME_PTR f; + int first_time; { Widget menubar_widget = f->display.x->menubar_widget; int id = (int) f; @@ -1203,7 +1204,9 @@ free_menubar_widget_value_tree (first_wv); - update_frame_menubar (f); + /* Don't update the menubar the first time it is created via x_window. */ + if (!first_time) + update_frame_menubar (f); UNBLOCK_INPUT; } @@ -1233,7 +1236,7 @@ initialize_frame_menubar (f) FRAME_PTR f; { - set_frame_menubar (f); + set_frame_menubar (f, 1); } /* Nonzero if position X, Y relative to inside of frame F