aboutsummaryrefslogtreecommitdiffstats
path: root/src/xmenu.c
diff options
context:
space:
mode:
authorJoakim Verona2013-01-16 00:03:29 +0100
committerJoakim Verona2013-01-16 00:03:29 +0100
commit29901a24475c9dd0e7e7bc73adb0fabf7d0a7ddd (patch)
treeacbf658794aeff0bae865da7fc1e88733cb2b397 /src/xmenu.c
parentbc4f7ac4ec3ee942171b9fef6eec6b1a61cc5b8b (diff)
parent963ea40fe96634a01b24aef4fc39acf9a4236eb7 (diff)
downloademacs-29901a24475c9dd0e7e7bc73adb0fabf7d0a7ddd.tar.gz
emacs-29901a24475c9dd0e7e7bc73adb0fabf7d0a7ddd.zip
auto upstream
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 6d880993d19..7f6914d26ac 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1413,7 +1413,7 @@ pop_down_menu (Lisp_Object arg)
1413{ 1413{
1414 popup_activated_flag = 0; 1414 popup_activated_flag = 0;
1415 block_input (); 1415 block_input ();
1416 gtk_widget_destroy (GTK_WIDGET (XSAVE_POINTER (arg))); 1416 gtk_widget_destroy (GTK_WIDGET (XSAVE_POINTER (arg, 0)));
1417 unblock_input (); 1417 unblock_input ();
1418 return Qnil; 1418 return Qnil;
1419} 1419}
@@ -1610,7 +1610,7 @@ create_and_show_popup_menu (FRAME_PTR f, widget_value *first_wv,
1610static Lisp_Object 1610static Lisp_Object
1611cleanup_widget_value_tree (Lisp_Object arg) 1611cleanup_widget_value_tree (Lisp_Object arg)
1612{ 1612{
1613 free_menubar_widget_value_tree (XSAVE_POINTER (arg)); 1613 free_menubar_widget_value_tree (XSAVE_POINTER (arg, 0));
1614 return Qnil; 1614 return Qnil;
1615} 1615}
1616 1616
@@ -2236,8 +2236,8 @@ menu_help_callback (char const *help_string, int pane, int item)
2236static Lisp_Object 2236static Lisp_Object
2237pop_down_menu (Lisp_Object arg) 2237pop_down_menu (Lisp_Object arg)
2238{ 2238{
2239 FRAME_PTR f = XSAVE_POINTER (Fcar (arg)); 2239 FRAME_PTR f = XSAVE_POINTER (arg, 0);
2240 XMenu *menu = XSAVE_POINTER (Fcdr (arg)); 2240 XMenu *menu = XSAVE_POINTER (arg, 1);
2241 2241
2242 block_input (); 2242 block_input ();
2243#ifndef MSDOS 2243#ifndef MSDOS
@@ -2479,8 +2479,7 @@ xmenu_show (FRAME_PTR f, int x, int y, bool for_click, bool keymaps,
2479#endif 2479#endif
2480 2480
2481 record_unwind_protect (pop_down_menu, 2481 record_unwind_protect (pop_down_menu,
2482 Fcons (make_save_value (f, 0), 2482 format_save_value ("pp", f, menu));
2483 make_save_value (menu, 0)));
2484 2483
2485 /* Help display under X won't work because XMenuActivate contains 2484 /* Help display under X won't work because XMenuActivate contains
2486 a loop that doesn't give Emacs a chance to process it. */ 2485 a loop that doesn't give Emacs a chance to process it. */