aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2005-03-24 18:53:43 +0000
committerJan Djärv2005-03-24 18:53:43 +0000
commitff18668fa0cdc0c5cfb694c824ef0aa7cf1193cc (patch)
tree989ed3e67bc724140469a8ff740d6952ec7c02f2 /src
parent04c769c2bd274857c665df68db6e0b173f09e110 (diff)
downloademacs-ff18668fa0cdc0c5cfb694c824ef0aa7cf1193cc.tar.gz
emacs-ff18668fa0cdc0c5cfb694c824ef0aa7cf1193cc.zip
* xmenu.c (create_and_show_popup_menu): Just remove menu and return
if it failed to pop up (Gnome "show pointer on ctrl" option makes menus fail to pop up).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xmenu.c13
2 files changed, 14 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c0e782eb6f1..f0b648b6ebb 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12005-03-24 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
4 if it failed to pop up (Gnome "show pointer on ctrl" option makes
5 menus fail to pop up).
6
12005-03-24 Stefan <monnier@iro.umontreal.ca> 72005-03-24 Stefan <monnier@iro.umontreal.ca>
2 8
3 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9. 9 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
diff --git a/src/xmenu.c b/src/xmenu.c
index 0cb0b73b71d..c17e1e801b7 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -2490,11 +2490,14 @@ create_and_show_popup_menu (f, first_wv, x, y, for_click)
2490 2490
2491 record_unwind_protect (pop_down_menu, make_save_value (menu, 0)); 2491 record_unwind_protect (pop_down_menu, make_save_value (menu, 0));
2492 2492
2493 /* Set this to one. popup_widget_loop increases it by one, so it becomes 2493 if (GTK_WIDGET_MAPPED (menu))
2494 two. show_help_echo uses this to detect popup menus. */ 2494 {
2495 popup_activated_flag = 1; 2495 /* Set this to one. popup_widget_loop increases it by one, so it becomes
2496 /* Process events that apply to the menu. */ 2496 two. show_help_echo uses this to detect popup menus. */
2497 popup_widget_loop (1, menu); 2497 popup_activated_flag = 1;
2498 /* Process events that apply to the menu. */
2499 popup_widget_loop (1, menu);
2500 }
2498 2501
2499 unbind_to (specpdl_count, Qnil); 2502 unbind_to (specpdl_count, Qnil);
2500 2503