aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2004-11-12 13:47:13 +0000
committerKim F. Storm2004-11-12 13:47:13 +0000
commitb9de078aa68bc403b9da6c801cdbd37eb77af44a (patch)
tree865e869ab7a4fd4cdce3c939cd59e0e6f5f244d1 /src
parentf1d1cd24db8ab975bbe9bf0c4260bd8025e8bd75 (diff)
downloademacs-b9de078aa68bc403b9da6c801cdbd37eb77af44a.tar.gz
emacs-b9de078aa68bc403b9da6c801cdbd37eb77af44a.zip
(pop_down_menu): Return nil.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xmenu.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 89002eaadd1..43283cc83e3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12004-11-12 Kim F. Storm <storm@cua.dk>
2
3 * xmenu.c (pop_down_menu): Return nil.
4
12004-11-12 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 52004-11-12 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 6
3 * xmenu.c (x_menu_wait_for_event): New function. 7 * xmenu.c (x_menu_wait_for_event): New function.
@@ -8,7 +12,7 @@
8 do_timers to popup_widget_loop. 12 do_timers to popup_widget_loop.
9 (xmenu_show): Call XMenuActivateSetWaitFunction so that 13 (xmenu_show): Call XMenuActivateSetWaitFunction so that
10 x_menu_wait_for_event is called by XMenuActivate. 14 x_menu_wait_for_event is called by XMenuActivate.
11 (create_and_show_popup_menu): Pass 1 for do_timers to 15 (create_and_show_popup_menu): Pass 1 for do_timers to
12 popup_get_selection. 16 popup_get_selection.
13 (pop_down_menu): New function. 17 (pop_down_menu): New function.
14 (popup_get_selection, popup_widget_loop): Unwind protect to 18 (popup_get_selection, popup_widget_loop): Unwind protect to
diff --git a/src/xmenu.c b/src/xmenu.c
index d7551cd7e45..3b813927281 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -524,7 +524,7 @@ single_menu_item (key, item, dummy, skp_v)
524 return; /* Not a menu item. */ 524 return; /* Not a menu item. */
525 525
526 map = XVECTOR (item_properties)->contents[ITEM_PROPERTY_MAP]; 526 map = XVECTOR (item_properties)->contents[ITEM_PROPERTY_MAP];
527 527
528 if (skp->notreal) 528 if (skp->notreal)
529 { 529 {
530 /* We don't want to make a menu, just traverse the keymaps to 530 /* We don't want to make a menu, just traverse the keymaps to
@@ -1098,7 +1098,7 @@ on the left of the dialog box and all following items on the right.
1098 the dialog. Also, the lesstif/motif version crashes if there are 1098 the dialog. Also, the lesstif/motif version crashes if there are
1099 no buttons. */ 1099 no buttons. */
1100 contents = Fcons (title, Fcons (Fcons (build_string ("Ok"), Qt), Qnil)); 1100 contents = Fcons (title, Fcons (Fcons (build_string ("Ok"), Qt), Qnil));
1101 1101
1102 list_of_panes (Fcons (contents, Qnil)); 1102 list_of_panes (Fcons (contents, Qnil));
1103 1103
1104 /* Display them in a dialog box. */ 1104 /* Display them in a dialog box. */
@@ -1178,6 +1178,7 @@ pop_down_menu (dummy)
1178 int dummy; 1178 int dummy;
1179{ 1179{
1180 popup_activated_flag = 0; 1180 popup_activated_flag = 0;
1181 return Qnil;
1181} 1182}
1182 1183
1183/* Loop in Xt until the menu pulldown or dialog popup has been 1184/* Loop in Xt until the menu pulldown or dialog popup has been
@@ -1272,6 +1273,7 @@ pop_down_menu (dummy)
1272 current_menu = 0; 1273 current_menu = 0;
1273 popup_activated_flag = 0; 1274 popup_activated_flag = 0;
1274 } 1275 }
1276 return Qnil;
1275} 1277}
1276 1278
1277static void 1279static void
@@ -2417,7 +2419,7 @@ menu_position_func (menu, x, y, push_in, user_data)
2417 GtkRequisition req; 2419 GtkRequisition req;
2418 int disp_width = FRAME_X_DISPLAY_INFO (data->f)->width; 2420 int disp_width = FRAME_X_DISPLAY_INFO (data->f)->width;
2419 int disp_height = FRAME_X_DISPLAY_INFO (data->f)->height; 2421 int disp_height = FRAME_X_DISPLAY_INFO (data->f)->height;
2420 2422
2421 *x = data->x; 2423 *x = data->x;
2422 *y = data->y; 2424 *y = data->y;
2423 2425