* nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
authorJan D <jan.h.d@swipnet.se>
Thu, 1 Jul 2010 10:45:26 +0000 (12:45 +0200)
committerJan D <jan.h.d@swipnet.se>
Thu, 1 Jul 2010 10:45:26 +0000 (12:45 +0200)
BLOCK/UNBLOCK_INPUT so asserts don't trigger.

src/ChangeLog
src/nsmenu.m

index 2667ef4..c6af9f2 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-01  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
+       BLOCK/UNBLOCK_INPUT so asserts don't trigger.
+
 2010-06-30  Chong Yidong  <cyd@stupidchicken.com>
 
        * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
index f85ebc1..5fc3d0f 100644 (file)
@@ -999,7 +999,9 @@ free_frame_tool_bar (FRAME_PTR f)
     Under NS we just hide the toolbar until it might be needed again.
    -------------------------------------------------------------------------- */
 {
+  BLOCK_INPUT;
   [[FRAME_NS_VIEW (f) toolbar] setVisible: NO];
+  UNBLOCK_INPUT;
 }
 
 void
@@ -1011,6 +1013,7 @@ update_frame_tool_bar (FRAME_PTR f)
   int i;
   EmacsToolbar *toolbar = [FRAME_NS_VIEW (f) toolbar];
 
+  BLOCK_INPUT;
   [toolbar clearActive];
 
   /* update EmacsToolbar as in GtkUtils, build items list */
@@ -1094,6 +1097,7 @@ update_frame_tool_bar (FRAME_PTR f)
       [newDict release];
     }
 
+  UNBLOCK_INPUT;
 }