]> git.eshelyaron.com Git - emacs.git/commit
Fix processing of dialog box items on NS
authorPo Lu <luangruo@yahoo.com>
Sat, 14 May 2022 13:18:27 +0000 (21:18 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 14 May 2022 13:18:35 +0000 (21:18 +0800)
commit5aef501d9c3394599dd2e48ff7ba7bb5f13cd19a
tree7ee2bd892429814c6f8b9c22ae9adb4dec0027ff
parente0044dfeb0de0d0cafdef04b433b14afa27d3518
Fix processing of dialog box items on NS

* src/nsmenu.m (pop_down_menu): Remove old hack and discard menu
items.
(ns_popup_dialog):
([EmacsDialogPanel initWithContentRect:styleMask:backing:defer:]):
([EmacsDialogPanel windowShouldClose:]):
([EmacsDialogPanel dealloc]):
([EmacsDialogPanel processdialog:]):
([EmacsDialogPanel addButton:value:row:]):
([EmacsDialogPanel addString:row:]):
([EmacsDialogPanel clicked:]):
([EmacsDialogPanel initFromContents:isQuestion:]):
([EmacsDialogPanel timeouthandler:]):
([EmacsDialogPanel runDialogAt:]): Use the regular menu item
machinery to parse dialog items instead of the incorrect ad-hoc
code used previously.

* src/nsterm.h: Update prototypes.
src/nsmenu.m
src/nsterm.h