aboutsummaryrefslogtreecommitdiffstats
path: root/src/xmenu.c
diff options
context:
space:
mode:
authorJan Djärv2004-11-16 20:52:32 +0000
committerJan Djärv2004-11-16 20:52:32 +0000
commit5ae53dcfca43ee0c8560f6e4fadfa9081adf68ae (patch)
treeef102a5760e50b95ee822831b3a64b8d8161ed2e /src/xmenu.c
parentee31cd78ef49f569262b1a591949d707583dcdb3 (diff)
downloademacs-5ae53dcfca43ee0c8560f6e4fadfa9081adf68ae.tar.gz
emacs-5ae53dcfca43ee0c8560f6e4fadfa9081adf68ae.zip
* xmenu.c (x_menu_in_use): Removed.
(x_menu_set_in_use): Also set popup_activated_flag. * xfns.c (Fx_file_dialog): Call popup_activated instead of x_menu_in_use. Call x_menu_set_in_use in Motif version also. * xterm.h: (x_menu_in_use): Removed.
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 23904576edf..6f990bd11b1 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1118,14 +1118,6 @@ on the left of the dialog box and all following items on the right.
1118 1118
1119#ifndef MSDOS 1119#ifndef MSDOS
1120 1120
1121/* Return non-zero if a dialog or popup menu is already popped up. */
1122
1123int
1124x_menu_in_use ()
1125{
1126 return ! NILP (menu_items_inuse);
1127}
1128
1129/* Set menu_items_inuse so no other popup menu or dialog is created. */ 1121/* Set menu_items_inuse so no other popup menu or dialog is created. */
1130 1122
1131void 1123void
@@ -1133,6 +1125,7 @@ x_menu_set_in_use (in_use)
1133 int in_use; 1125 int in_use;
1134{ 1126{
1135 menu_items_inuse = in_use ? Qt : Qnil; 1127 menu_items_inuse = in_use ? Qt : Qnil;
1128 popup_activated_flag = in_use;
1136} 1129}
1137 1130
1138/* Wait for an X event to arrive or for a timer to expire. */ 1131/* Wait for an X event to arrive or for a timer to expire. */