emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xmenu.c


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/src/xmenu.c
Date: Sat, 13 Nov 2004 18:47:50 -0500

Index: emacs/src/xmenu.c
diff -c emacs/src/xmenu.c:1.268 emacs/src/xmenu.c:1.269
*** emacs/src/xmenu.c:1.268     Sat Nov 13 20:18:21 2004
--- emacs/src/xmenu.c   Sat Nov 13 23:29:11 2004
***************
*** 1118,1126 ****
  
  #ifndef MSDOS
  
  /* Wait for an X event to arrive or for a timer to expire.  */
  
! static void
  x_menu_wait_for_event (void *data)
  {
    extern EMACS_TIME timer_check P_ ((int));
--- 1118,1143 ----
  
  #ifndef MSDOS
  
+ /* Return non-zero if a dialog or popup menu is already popped up.  */
+ 
+ int
+ x_menu_in_use ()
+ {
+   return ! NILP (menu_items_inuse);
+ }
+ 
+ /* Set menu_items_inuse so no other popup menu or dialog is created.  */
+ 
+ void
+ x_menu_set_in_use (in_use)
+      int in_use;
+ {
+   menu_items_inuse = in_use ? Qt : Qnil;
+ }
+ 
  /* Wait for an X event to arrive or for a timer to expire.  */
  
! void
  x_menu_wait_for_event (void *data)
  {
    extern EMACS_TIME timer_check P_ ((int));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]