aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan D2010-07-01 12:45:26 +0200
committerJan D2010-07-01 12:45:26 +0200
commit1f984e12b46da4e8758b8c547cd90d5dac72a1fd (patch)
tree48bd385c006194753398c9f5d5dfdef725b208e5 /src
parentb32d1614abd91e784a95a34b9979b7ec0c541c9e (diff)
downloademacs-1f984e12b46da4e8758b8c547cd90d5dac72a1fd.tar.gz
emacs-1f984e12b46da4e8758b8c547cd90d5dac72a1fd.zip
* nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
BLOCK/UNBLOCK_INPUT so asserts don't trigger.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/nsmenu.m4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2667ef41ad0..c6af9f218ae 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2
3 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
4 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
5
12010-06-30 Chong Yidong <cyd@stupidchicken.com> 62010-06-30 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't 8 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
diff --git a/src/nsmenu.m b/src/nsmenu.m
index f85ebc165af..5fc3d0f5a41 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -999,7 +999,9 @@ free_frame_tool_bar (FRAME_PTR f)
999 Under NS we just hide the toolbar until it might be needed again. 999 Under NS we just hide the toolbar until it might be needed again.
1000 -------------------------------------------------------------------------- */ 1000 -------------------------------------------------------------------------- */
1001{ 1001{
1002 BLOCK_INPUT;
1002 [[FRAME_NS_VIEW (f) toolbar] setVisible: NO]; 1003 [[FRAME_NS_VIEW (f) toolbar] setVisible: NO];
1004 UNBLOCK_INPUT;
1003} 1005}
1004 1006
1005void 1007void
@@ -1011,6 +1013,7 @@ update_frame_tool_bar (FRAME_PTR f)
1011 int i; 1013 int i;
1012 EmacsToolbar *toolbar = [FRAME_NS_VIEW (f) toolbar]; 1014 EmacsToolbar *toolbar = [FRAME_NS_VIEW (f) toolbar];
1013 1015
1016 BLOCK_INPUT;
1014 [toolbar clearActive]; 1017 [toolbar clearActive];
1015 1018
1016 /* update EmacsToolbar as in GtkUtils, build items list */ 1019 /* update EmacsToolbar as in GtkUtils, build items list */
@@ -1094,6 +1097,7 @@ update_frame_tool_bar (FRAME_PTR f)
1094 [newDict release]; 1097 [newDict release];
1095 } 1098 }
1096 1099
1100 UNBLOCK_INPUT;
1097} 1101}
1098 1102
1099 1103