summaryrefslogtreecommitdiff
path: root/src/w32term.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2014-02-04 18:13:51 +0200
committerEli Zaretskii <eliz@gnu.org>2014-02-04 18:13:51 +0200
commite139a33cd97a0e12405cae760ca5e436d9dcbc74 (patch)
treee744130600582bf8005e7aad818c55a662a18428 /src/w32term.h
parent40d2f2e4bb6b4e0b373180ae12836f6b335dc0bb (diff)
downloademacs-e139a33cd97a0e12405cae760ca5e436d9dcbc74.tar.gz
Fix bug #16636 with simple dialogs on MS-Windows.
src/w32menu.c (w32_popup_dialog): Don't condition the whole function on HAVE_DIALOGS. If the dialog is "simple", pop up a message box to show it; otherwise return 'unsupported--w32-dialog' to signal to the caller that emulation with menus is necessary. This resurrects code inadvertently deleted by the 2013-10-08 commit. (syms_of_w32menu): DEFSYM Qunsupported__w32_dialog. src/w32term.h (w32_popup_dialog): Prototype is no longer conditioned by HAVE_DIALOGS. src/menu.c (Fx_popup_dialog): Don't condition the call to w32_popup_dialog on HAVE_DIALOGS. If w32_popup_dialog returns a special symbol 'unsupported--w32-dialog', emulate the dialog with a menu by calling x-popup-menu. src/menu.h (Qunsupported__w32_dialog): New extern variable.
Diffstat (limited to 'src/w32term.h')
-rw-r--r--src/w32term.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/w32term.h b/src/w32term.h
index f85e6bced8b..e3b65f0ffaf 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -781,9 +781,7 @@ typedef char guichar_t;
#define GUI_SDATA(x) ((guichar_t*) SDATA (x))
-#if defined HAVE_DIALOGS
extern Lisp_Object w32_popup_dialog (struct frame *, Lisp_Object, Lisp_Object);
-#endif
extern void syms_of_w32term (void);
extern void syms_of_w32menu (void);