diff options
| author | Karl Heuer | 1995-05-30 18:46:49 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-05-30 18:46:49 +0000 |
| commit | 4bcdbab1939f7846854bef23f97769bc282d3667 (patch) | |
| tree | 63fc1f390510269d2788669af623c83d6f7985ba /src | |
| parent | eac4251ca6fb1bcbfef792b559c008a8c9064895 (diff) | |
| download | emacs-4bcdbab1939f7846854bef23f97769bc282d3667.tar.gz emacs-4bcdbab1939f7846854bef23f97769bc282d3667.zip | |
(set_frame_menubar): Always call update_frame_menubar.
Diffstat (limited to 'src')
| -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) | |||
| 1415 | 1415 | ||
| 1416 | extern void EmacsFrameSetCharSize (); | 1416 | extern void EmacsFrameSetCharSize (); |
| 1417 | 1417 | ||
| 1418 | /* Recompute the menu bar of frame F. */ | 1418 | /* Recompute all the widgets of frame F, when the menu bar |
| 1419 | has been changed. */ | ||
| 1419 | 1420 | ||
| 1420 | static void | 1421 | static void |
| 1421 | update_frame_menubar (f) | 1422 | update_frame_menubar (f) |
| @@ -1473,6 +1474,10 @@ update_frame_menubar (f) | |||
| 1473 | UNBLOCK_INPUT; | 1474 | UNBLOCK_INPUT; |
| 1474 | } | 1475 | } |
| 1475 | 1476 | ||
| 1477 | /* Set the contents of the menubar widgets of frame F. | ||
| 1478 | The argument FIRST_TIME is currently ignored; | ||
| 1479 | it is set the first time this is called, from initialize_frame_menubar. */ | ||
| 1480 | |||
| 1476 | void | 1481 | void |
| 1477 | set_frame_menubar (f, first_time) | 1482 | set_frame_menubar (f, first_time) |
| 1478 | FRAME_PTR f; | 1483 | FRAME_PTR f; |
| @@ -1586,9 +1591,7 @@ set_frame_menubar (f, first_time) | |||
| 1586 | 1591 | ||
| 1587 | free_menubar_widget_value_tree (first_wv); | 1592 | free_menubar_widget_value_tree (first_wv); |
| 1588 | 1593 | ||
| 1589 | /* Don't update the menubar the first time it is created via x_window. */ | 1594 | update_frame_menubar (f); |
| 1590 | if (!first_time) | ||
| 1591 | update_frame_menubar (f); | ||
| 1592 | 1595 | ||
| 1593 | UNBLOCK_INPUT; | 1596 | UNBLOCK_INPUT; |
| 1594 | } | 1597 | } |