* nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 27 Aug 2012 18:53:10 +0000 (20:53 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 27 Aug 2012 18:53:10 +0000 (20:53 +0200)
commit0f19feff2536f40cd10c3b7201ecd89e40148626
tree81545ee3d78c04070cafef3243dfff112fdf4927
parentde1339b0a8a5b6b8bf784c816b2b974f4610e3ac
* nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize
dialog_return.
(windowShouldClose:): Use stop instead of stopModalWithCode.
(clicked:): Ditto, and also set dialog_return.
(timeout_handler:): Use stop instead of abortModal.  Send a dummy
event.
(runDialogAt:): Make ret Lisp_Object.  Set it from dialog_return when
modal loop returns.

* nsterm.h (NSPanel): New class variable dialog_return.

Fixes: debbugs:12258
src/ChangeLog
src/nsmenu.m
src/nsterm.h