diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2006-11-06 16:47:33 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2006-11-06 16:47:33 +0000 |
commit | e3135734b208cffc5a5319714fa036b15e950a2e (patch) | |
tree | 55456019d0388eb280f73c82462d7d852585db7d /src/w32menu.c | |
parent | c1f043a06378a5a3f6f5dd5b7b1b383439ebc9ef (diff) | |
download | emacs-e3135734b208cffc5a5319714fa036b15e950a2e.tar.gz |
(Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
Return nil if building without menus.
Diffstat (limited to 'src/w32menu.c')
-rw-r--r-- | src/w32menu.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/w32menu.c b/src/w32menu.c index cf7103b727b..d5c38bee336 100644 --- a/src/w32menu.c +++ b/src/w32menu.c @@ -990,17 +990,6 @@ x_activate_menubar (f) complete_deferred_msg (FRAME_W32_WINDOW (f), WM_INITMENU, 0); } -/* The following is used by delayed window autoselection. */ - -DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0, - doc: /* Return t if a menu or popup dialog is active on selected frame. */) - () -{ - FRAME_PTR f; - f = SELECTED_FRAME (); - return (f->output_data.w32->menubar_active > 0) ? Qt : Qnil; -} - /* This callback is called from the menu bar pulldown menu when the user makes a selection. Figure out what the user chose @@ -2536,6 +2525,21 @@ w32_free_menu_strings (hwnd) #endif /* HAVE_MENUS */ +/* The following is used by delayed window autoselection. */ + +DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0, + doc: /* Return t if a menu or popup dialog is active on selected frame. */) + () +{ +#ifdef HAVE_MENUS + FRAME_PTR f; + f = SELECTED_FRAME (); + return (f->output_data.w32->menubar_active > 0) ? Qt : Qnil; +#else + return Qnil; +#endif /* HAVE_MENUS */ +} + void syms_of_w32menu () { globals_of_w32menu (); |