# HG changeset patch # User Karl Heuer # Date 801859609 0 # Node ID f5d820ad7a13e6739ba3b43772cd5803b4c0a7d7 # Parent 0d73575a1c0e451553d646eefd84036972d1a526 (set_frame_menubar): Always call update_frame_menubar. diff -r 0d73575a1c0e -r f5d820ad7a13 src/xmenu.c --- a/src/xmenu.c Tue May 30 18:46:24 1995 +0000 +++ b/src/xmenu.c Tue May 30 18:46:49 1995 +0000 @@ -1415,7 +1415,8 @@ extern void EmacsFrameSetCharSize (); -/* Recompute the menu bar of frame F. */ +/* Recompute all the widgets of frame F, when the menu bar + has been changed. */ static void update_frame_menubar (f) @@ -1473,6 +1474,10 @@ UNBLOCK_INPUT; } +/* Set the contents of the menubar widgets of frame F. + The argument FIRST_TIME is currently ignored; + it is set the first time this is called, from initialize_frame_menubar. */ + void set_frame_menubar (f, first_time) FRAME_PTR f; @@ -1586,9 +1591,7 @@ free_menubar_widget_value_tree (first_wv); - /* Don't update the menubar the first time it is created via x_window. */ - if (!first_time) - update_frame_menubar (f); + update_frame_menubar (f); UNBLOCK_INPUT; }