aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2004-10-31 15:29:04 +0000
committerJan Djärv2004-10-31 15:29:04 +0000
commit495ef86be2c07050a83606ccc476fc3a2cf6479f (patch)
tree19819da873d1e5e6fbac0754b8421ac3bdbfc3b7 /src
parent12e6566a256a5c18a018645e6cbd461eb8662e62 (diff)
downloademacs-495ef86be2c07050a83606ccc476fc3a2cf6479f.tar.gz
emacs-495ef86be2c07050a83606ccc476fc3a2cf6479f.zip
* xmenu.c: Add prototypes for forward function declarations.
(popup_get_selection): Remove parameter do_timers, remove call to timer_check. (create_and_show_popup_menu, create_and_show_dialog): Remove parameter do_timers from call to popup_get_selection.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xmenu.c24
2 files changed, 15 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 76a6676a0cf..77f6f2d073f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
12004-10-31 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 12004-10-31 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 2
3 * xmenu.c: Add prototypes for forward function declarations.
4 (popup_get_selection): Remove parameter do_timers, remove call to
5 timer_check.
6 (create_and_show_popup_menu, create_and_show_dialog): Remove
7 parameter do_timers from call to popup_get_selection.
8
3 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to 9 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
4 tool_bar_items and assign the result to f->tool_bar_items if 10 tool_bar_items and assign the result to f->tool_bar_items if
5 not equal. Move BLOCK/UNBLOCK_INPUT from around call to 11 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
diff --git a/src/xmenu.c b/src/xmenu.c
index b722b245af9..371ae14f12e 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -110,11 +110,12 @@ extern Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map;
110extern Lisp_Object Qmenu_bar_update_hook; 110extern Lisp_Object Qmenu_bar_update_hook;
111 111
112#ifdef USE_X_TOOLKIT 112#ifdef USE_X_TOOLKIT
113extern void set_frame_menubar (); 113extern void set_frame_menubar P_ ((FRAME_PTR, int, int));
114extern XtAppContext Xt_app_con; 114extern XtAppContext Xt_app_con;
115 115
116static Lisp_Object xdialog_show (); 116static Lisp_Object xdialog_show P_ ((FRAME_PTR, int, Lisp_Object, char **));
117static void popup_get_selection (); 117static void popup_get_selection P_ ((XEvent *, struct x_display_info *,
118 LWLIB_ID, int));
118 119
119/* Define HAVE_BOXES if menus can handle radio and toggle buttons. */ 120/* Define HAVE_BOXES if menus can handle radio and toggle buttons. */
120 121
@@ -124,8 +125,8 @@ static void popup_get_selection ();
124#ifdef USE_GTK 125#ifdef USE_GTK
125#include "gtkutil.h" 126#include "gtkutil.h"
126#define HAVE_BOXES 1 127#define HAVE_BOXES 1
127extern void set_frame_menubar (); 128extern void set_frame_menubar P_ ((FRAME_PTR, int, int));
128static Lisp_Object xdialog_show (); 129static Lisp_Object xdialog_show P_ ((FRAME_PTR, int, Lisp_Object, char **));
129#endif 130#endif
130 131
131/* This is how to deal with multibyte text if HAVE_MULTILINGUAL_MENU 132/* This is how to deal with multibyte text if HAVE_MULTILINGUAL_MENU
@@ -156,7 +157,6 @@ static void single_keymap_panes P_ ((Lisp_Object, Lisp_Object, Lisp_Object,
156static void list_of_panes P_ ((Lisp_Object)); 157static void list_of_panes P_ ((Lisp_Object));
157static void list_of_items P_ ((Lisp_Object)); 158static void list_of_items P_ ((Lisp_Object));
158 159
159extern EMACS_TIME timer_check P_ ((int));
160 160
161/* This holds a Lisp vector that holds the results of decoding 161/* This holds a Lisp vector that holds the results of decoding
162 the keymaps or alist-of-alists that specify a menu. 162 the keymaps or alist-of-alists that specify a menu.
@@ -1128,21 +1128,16 @@ on the left of the dialog box and all following items on the right.
1128 1128
1129#ifdef USE_X_TOOLKIT 1129#ifdef USE_X_TOOLKIT
1130static void 1130static void
1131popup_get_selection (initial_event, dpyinfo, id, do_timers, down_on_keypress) 1131popup_get_selection (initial_event, dpyinfo, id, down_on_keypress)
1132 XEvent *initial_event; 1132 XEvent *initial_event;
1133 struct x_display_info *dpyinfo; 1133 struct x_display_info *dpyinfo;
1134 LWLIB_ID id; 1134 LWLIB_ID id;
1135 int do_timers;
1136 int down_on_keypress; 1135 int down_on_keypress;
1137{ 1136{
1138 XEvent event; 1137 XEvent event;
1139 1138
1140 while (popup_activated_flag) 1139 while (popup_activated_flag)
1141 { 1140 {
1142 /* If we have no events to run, consider timers. */
1143 if (do_timers && !XtAppPending (Xt_app_con))
1144 timer_check (1);
1145
1146 if (initial_event) 1141 if (initial_event)
1147 { 1142 {
1148 event = *initial_event; 1143 event = *initial_event;
@@ -2489,7 +2484,7 @@ create_and_show_popup_menu (f, first_wv, x, y, for_click)
2489 popup_activated_flag = 1; 2484 popup_activated_flag = 1;
2490 2485
2491 /* Process events that apply to the menu. */ 2486 /* Process events that apply to the menu. */
2492 popup_get_selection ((XEvent *) 0, FRAME_X_DISPLAY_INFO (f), menu_id, 0, 0); 2487 popup_get_selection ((XEvent *) 0, FRAME_X_DISPLAY_INFO (f), menu_id, 0);
2493 2488
2494 /* fp turned off the following statement and wrote a comment 2489 /* fp turned off the following statement and wrote a comment
2495 that it is unnecessary--that the menu has already disappeared. 2490 that it is unnecessary--that the menu has already disappeared.
@@ -2883,8 +2878,7 @@ create_and_show_dialog (f, first_wv)
2883 Fcons (make_number (dialog_id >> (fact)), 2878 Fcons (make_number (dialog_id >> (fact)),
2884 make_number (dialog_id & ~(-1 << (fact))))); 2879 make_number (dialog_id & ~(-1 << (fact)))));
2885 2880
2886 popup_get_selection ((XEvent *) 0, FRAME_X_DISPLAY_INFO (f), 2881 popup_get_selection ((XEvent *) 0, FRAME_X_DISPLAY_INFO (f), dialog_id, 1);
2887 dialog_id, 1, 1);
2888 2882
2889 unbind_to (count, Qnil); 2883 unbind_to (count, Qnil);
2890 } 2884 }