]> code.delx.au - gnu-emacs/commit
Use terminal-specific hooks to display popup dialogs.
authorDmitry Antipov <dmantipov@yandex.ru>
Wed, 4 Jun 2014 14:59:09 +0000 (18:59 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Wed, 4 Jun 2014 14:59:09 +0000 (18:59 +0400)
commit680a6ad9327fc056854cac0a3e7679a32cb63a93
treee0bf50ef593d2b32ff034b0eb700f7a664f8d4ee
parent350aea695f9ad367e066bf073da2a0bb1d9a56bd
Use terminal-specific hooks to display popup dialogs.
* termhooks.h (struct terminal): New field popup_dialog_hook.
* menu.c (emulate_dialog_with_menu): New function, refactored from ...
(Fx_popup_dialog): ... adjusted user.  Also remove old #if 0
code and use popup_dialog_hook.
* nsmenu.m (ns_popup_dialog): Make hook-compatible.
* nsterm.h (ns_popup_dialog): Adjust prototype.
* nsterm.m (ns_create_terminal):
* w32term.c (w32_create_terminal):
* xterm.c (x_create_terminal) [USE_X_TOOLKIT || USE_GTK]: Setup
popup_dialog_hook.
src/ChangeLog
src/menu.c
src/nsmenu.m
src/nsterm.h
src/nsterm.m
src/termhooks.h
src/w32term.c
src/xterm.c