diff options
| author | Jan Djärv | 2004-11-12 09:36:55 +0000 |
|---|---|---|
| committer | Jan Djärv | 2004-11-12 09:36:55 +0000 |
| commit | df00f4364c61cb4d813a158d6f7d4f31e1ea4adf (patch) | |
| tree | 4d29b949409995bf3d372a23f431bb35dfde4794 /src | |
| parent | c3438661cbfac6a4622ea16c25c237a4ecd43009 (diff) | |
| download | emacs-df00f4364c61cb4d813a158d6f7d4f31e1ea4adf.tar.gz emacs-df00f4364c61cb4d813a158d6f7d4f31e1ea4adf.zip | |
(popup_widget_loop): Add argument do_timers.
(create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
do_timers to popup_widget_loop.
(create_and_show_popup_menu): Pass 1 for do_timers to
popup_get_selection.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xmenu.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7f66e82bfc6..b680abe8d4f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -3,8 +3,13 @@ | |||
| 3 | * xmenu.c (x_menu_wait_for_event): New function. | 3 | * xmenu.c (x_menu_wait_for_event): New function. |
| 4 | (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event | 4 | (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event |
| 5 | to handle timers. | 5 | to handle timers. |
| 6 | (popup_widget_loop): Add argument do_timers. | ||
| 7 | (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for | ||
| 8 | do_timers to popup_widget_loop. | ||
| 6 | (xmenu_show): Call XMenuActivateSetWaitFunction so that | 9 | (xmenu_show): Call XMenuActivateSetWaitFunction so that |
| 7 | x_menu_wait_for_event is called by XMenuActivate. | 10 | x_menu_wait_for_event is called by XMenuActivate. |
| 11 | (create_and_show_popup_menu): Pass 1 for do_timers to | ||
| 12 | popup_get_selection. | ||
| 8 | 13 | ||
| 9 | 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca> | 14 | 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca> |
| 10 | 15 | ||
diff --git a/src/xmenu.c b/src/xmenu.c index 9b9de8aa16d..d8ab2eb58aa 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -2456,7 +2456,7 @@ create_and_show_popup_menu (f, first_wv, x, y, for_click) | |||
| 2456 | two. show_help_echo uses this to detect popup menus. */ | 2456 | two. show_help_echo uses this to detect popup menus. */ |
| 2457 | popup_activated_flag = 1; | 2457 | popup_activated_flag = 1; |
| 2458 | /* Process events that apply to the menu. */ | 2458 | /* Process events that apply to the menu. */ |
| 2459 | popup_widget_loop (0); | 2459 | popup_widget_loop (1); |
| 2460 | 2460 | ||
| 2461 | gtk_widget_destroy (menu); | 2461 | gtk_widget_destroy (menu); |
| 2462 | 2462 | ||
| @@ -2544,7 +2544,7 @@ create_and_show_popup_menu (f, first_wv, x, y, for_click) | |||
| 2544 | popup_activated_flag = 1; | 2544 | popup_activated_flag = 1; |
| 2545 | 2545 | ||
| 2546 | /* Process events that apply to the menu. */ | 2546 | /* Process events that apply to the menu. */ |
| 2547 | popup_get_selection ((XEvent *) 0, FRAME_X_DISPLAY_INFO (f), menu_id, 0, 0); | 2547 | popup_get_selection ((XEvent *) 0, FRAME_X_DISPLAY_INFO (f), menu_id, 1, 0); |
| 2548 | 2548 | ||
| 2549 | /* fp turned off the following statement and wrote a comment | 2549 | /* fp turned off the following statement and wrote a comment |
| 2550 | that it is unnecessary--that the menu has already disappeared. | 2550 | that it is unnecessary--that the menu has already disappeared. |