diff options
| author | Eli Zaretskii | 2013-03-28 20:13:59 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-03-28 20:13:59 +0200 |
| commit | d76bf86f438d4f5f9fe493ab76f02ffc78f3ae2e (patch) | |
| tree | 04fa8bc7bd2058a316a7ee30f8741d25bfd0b060 /src/nsmenu.m | |
| parent | 2ef26ceb192c7683754cf0b4aa3087f501254332 (diff) | |
| parent | e74aeda863cd6896e06e92586f87b45d63d67d15 (diff) | |
| download | emacs-d76bf86f438d4f5f9fe493ab76f02ffc78f3ae2e.tar.gz emacs-d76bf86f438d4f5f9fe493ab76f02ffc78f3ae2e.zip | |
Merge from trunk and resolve conflicts.
Diffstat (limited to 'src/nsmenu.m')
| -rw-r--r-- | src/nsmenu.m | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m index d0ea8f5a47a..b764d3f5951 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* NeXT/Open/GNUstep and MacOSX Cocoa menu and toolbar module. | 1 | /* NeXT/Open/GNUstep and MacOSX Cocoa menu and toolbar module. |
| 2 | Copyright (C) 2007-2012 Free Software Foundation, Inc. | 2 | Copyright (C) 2007-2013 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -191,7 +191,7 @@ ns_update_menubar (struct frame *f, bool deep_p, EmacsMenu *submenu) | |||
| 191 | = alloca (previous_menu_items_used * sizeof *previous_items); | 191 | = alloca (previous_menu_items_used * sizeof *previous_items); |
| 192 | 192 | ||
| 193 | /* lisp preliminaries */ | 193 | /* lisp preliminaries */ |
| 194 | buffer = XWINDOW (FRAME_SELECTED_WINDOW (f))->buffer; | 194 | buffer = XWINDOW (FRAME_SELECTED_WINDOW (f))->contents; |
| 195 | specbind (Qinhibit_quit, Qt); | 195 | specbind (Qinhibit_quit, Qt); |
| 196 | specbind (Qdebug_on_next_call, Qnil); | 196 | specbind (Qdebug_on_next_call, Qnil); |
| 197 | record_unwind_save_match_data (); | 197 | record_unwind_save_match_data (); |
| @@ -1110,6 +1110,8 @@ update_frame_tool_bar (FRAME_PTR f) | |||
| 1110 | FRAME_TOOLBAR_HEIGHT (f) = | 1110 | FRAME_TOOLBAR_HEIGHT (f) = |
| 1111 | NSHeight ([window frameRectForContentRect: NSMakeRect (0, 0, 0, 0)]) | 1111 | NSHeight ([window frameRectForContentRect: NSMakeRect (0, 0, 0, 0)]) |
| 1112 | - FRAME_NS_TITLEBAR_HEIGHT (f); | 1112 | - FRAME_NS_TITLEBAR_HEIGHT (f); |
| 1113 | if (FRAME_TOOLBAR_HEIGHT (f) < 0) // happens if frame is fullscreen. | ||
| 1114 | FRAME_TOOLBAR_HEIGHT (f) = 0; | ||
| 1113 | unblock_input (); | 1115 | unblock_input (); |
| 1114 | } | 1116 | } |
| 1115 | 1117 | ||
| @@ -1347,8 +1349,7 @@ struct Popdown_data | |||
| 1347 | static Lisp_Object | 1349 | static Lisp_Object |
| 1348 | pop_down_menu (Lisp_Object arg) | 1350 | pop_down_menu (Lisp_Object arg) |
| 1349 | { | 1351 | { |
| 1350 | struct Lisp_Save_Value *p = XSAVE_VALUE (arg); | 1352 | struct Popdown_data *unwind_data = XSAVE_POINTER (arg, 0); |
| 1351 | struct Popdown_data *unwind_data = (struct Popdown_data *) p->pointer; | ||
| 1352 | 1353 | ||
| 1353 | block_input (); | 1354 | block_input (); |
| 1354 | if (popup_activated_flag) | 1355 | if (popup_activated_flag) |
| @@ -1441,7 +1442,7 @@ ns_popup_dialog (Lisp_Object position, Lisp_Object contents, Lisp_Object header) | |||
| 1441 | unwind_data->pool = pool; | 1442 | unwind_data->pool = pool; |
| 1442 | unwind_data->dialog = dialog; | 1443 | unwind_data->dialog = dialog; |
| 1443 | 1444 | ||
| 1444 | record_unwind_protect (pop_down_menu, make_save_value (unwind_data, 0)); | 1445 | record_unwind_protect (pop_down_menu, make_save_pointer (unwind_data)); |
| 1445 | popup_activated_flag = 1; | 1446 | popup_activated_flag = 1; |
| 1446 | tem = [dialog runDialogAt: p]; | 1447 | tem = [dialog runDialogAt: p]; |
| 1447 | unbind_to (specpdl_count, Qnil); /* calls pop_down_menu */ | 1448 | unbind_to (specpdl_count, Qnil); /* calls pop_down_menu */ |