diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-05-30 18:46:49 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-05-30 18:46:49 +0000 |
commit | 336a696fb4a62b8e19819bdf3de6731d31c135d0 (patch) | |
tree | 20b519cd425351c2c1579f44e8ea7d628e8272b7 /src/xmenu.c | |
parent | 917d7cfe7772c5bbdec46ed62dc67823c7dcc34c (diff) | |
download | emacs-336a696fb4a62b8e19819bdf3de6731d31c135d0.tar.gz |
(set_frame_menubar): Always call update_frame_menubar.
Diffstat (limited to 'src/xmenu.c')
-rw-r--r-- | src/xmenu.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index b29dd64b0a7..df5410c1db3 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -1415,7 +1415,8 @@ single_submenu (item_key, item_name, maps) 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 @@ update_frame_menubar (f) 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 @@ set_frame_menubar (f, first_time) 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; } |