aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2006-02-19 07:33:40 +0000
committerYAMAMOTO Mitsuharu2006-02-19 07:33:40 +0000
commit4f2f32146a3365fead29d93a4d5a6e41cec9956e (patch)
treeadbc6781eec0a4fc43bf73d744c4e47de7ebb22a /src
parent0f745bcf7946d55239cf6a06d64853af034c267e (diff)
downloademacs-4f2f32146a3365fead29d93a4d5a6e41cec9956e.tar.gz
emacs-4f2f32146a3365fead29d93a4d5a6e41cec9956e.zip
(update_menu_bar) [MAC_OS]: Don't set
w->update_mode_line if arg F is not the selected frame.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog20
-rw-r--r--src/xdisp.c15
2 files changed, 28 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index edaa7af4219..f42c2ab25f9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,23 @@
12006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
4 w->update_mode_line if arg F is not the selected frame.
5
6 * macmenu.c (popup_activated_flag, submenu_id)
7 (next_menubar_widget_id): Remove variables.
8 (initialize_frame_menubar): Remove function.
9 (pop_down_menu, mac_menu_show): Simplify save value.
10 (dispose_menus): New function.
11 (pop_down_menu, fill_menubar): Use it.
12 (fill_submenu): Remove function. All uses changed to fill_menu.
13 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
14 POS. Don't call SetMenuItemHierarchicalID here.
15 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
16 used next. Call SetMenuItemHierarchicalID here.
17 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
18 objects if needed. Reuse existing menu bar titles if possible.
19 (set_frame_menubar): Don't clean up menu objects here.
20
12006-02-18 Chong Yidong <cyd@stupidchicken.com> 212006-02-18 Chong Yidong <cyd@stupidchicken.com>
2 22
3 * window.c (window_min_size_1): Ensure room for the scroll bar and 23 * window.c (window_min_size_1): Ensure room for the scroll bar and
diff --git a/src/xdisp.c b/src/xdisp.c
index 9006687cd36..bcd28d43384 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -9052,14 +9052,15 @@ update_menu_bar (f, save_match_data)
9052 /* Redisplay the menu bar in case we changed it. */ 9052 /* Redisplay the menu bar in case we changed it. */
9053#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) \ 9053#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) \
9054 || defined (USE_GTK) 9054 || defined (USE_GTK)
9055 if (FRAME_WINDOW_P (f) 9055 if (FRAME_WINDOW_P (f))
9056#if defined (MAC_OS) 9056 {
9057 /* All frames on Mac OS share the same menubar. So only the 9057#ifdef MAC_OS
9058 selected frame should be allowed to set it. */ 9058 /* All frames on Mac OS share the same menubar. So only
9059 && f == SELECTED_FRAME () 9059 the selected frame should be allowed to set it. */
9060 if (f == SELECTED_FRAME ())
9060#endif 9061#endif
9061 ) 9062 set_frame_menubar (f, 0, 0);
9062 set_frame_menubar (f, 0, 0); 9063 }
9063 else 9064 else
9064 /* On a terminal screen, the menu bar is an ordinary screen 9065 /* On a terminal screen, the menu bar is an ordinary screen
9065 line, and this makes it get updated. */ 9066 line, and this makes it get updated. */