aboutsummaryrefslogtreecommitdiffstats
path: root/src/nsmenu.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/nsmenu.m')
-rw-r--r--src/nsmenu.m12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m
index 22635dca0a2..02fe0b04ca0 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -1410,10 +1410,10 @@ struct Popdown_data
1410 EmacsDialogPanel *dialog; 1410 EmacsDialogPanel *dialog;
1411}; 1411};
1412 1412
1413static Lisp_Object 1413static void
1414pop_down_menu (Lisp_Object arg) 1414pop_down_menu (void *arg)
1415{ 1415{
1416 struct Popdown_data *unwind_data = XSAVE_POINTER (arg, 0); 1416 struct Popdown_data *unwind_data = arg;
1417 1417
1418 block_input (); 1418 block_input ();
1419 if (popup_activated_flag) 1419 if (popup_activated_flag)
@@ -1427,8 +1427,6 @@ pop_down_menu (Lisp_Object arg)
1427 1427
1428 xfree (unwind_data); 1428 xfree (unwind_data);
1429 unblock_input (); 1429 unblock_input ();
1430
1431 return Qnil;
1432} 1430}
1433 1431
1434 1432
@@ -1492,7 +1490,7 @@ ns_popup_dialog (Lisp_Object position, Lisp_Object contents, Lisp_Object header)
1492 if (NILP (Fcar (Fcdr (contents)))) 1490 if (NILP (Fcar (Fcdr (contents))))
1493 /* No buttons specified, add an "Ok" button so users can pop down 1491 /* No buttons specified, add an "Ok" button so users can pop down
1494 the dialog. */ 1492 the dialog. */
1495 contents = Fcons (title, Fcons (Fcons (build_string ("Ok"), Qt), Qnil)); 1493 contents = list2 (title, Fcons (build_string ("Ok"), Qt));
1496 1494
1497 block_input (); 1495 block_input ();
1498 pool = [[NSAutoreleasePool alloc] init]; 1496 pool = [[NSAutoreleasePool alloc] init];
@@ -1506,7 +1504,7 @@ ns_popup_dialog (Lisp_Object position, Lisp_Object contents, Lisp_Object header)
1506 unwind_data->pool = pool; 1504 unwind_data->pool = pool;
1507 unwind_data->dialog = dialog; 1505 unwind_data->dialog = dialog;
1508 1506
1509 record_unwind_protect (pop_down_menu, make_save_pointer (unwind_data)); 1507 record_unwind_protect_ptr (pop_down_menu, unwind_data);
1510 popup_activated_flag = 1; 1508 popup_activated_flag = 1;
1511 tem = [dialog runDialogAt: p]; 1509 tem = [dialog runDialogAt: p];
1512 unbind_to (specpdl_count, Qnil); /* calls pop_down_menu */ 1510 unbind_to (specpdl_count, Qnil); /* calls pop_down_menu */