diff options
| author | Jan Djärv | 2012-08-28 18:05:17 +0200 |
|---|---|---|
| committer | Jan Djärv | 2012-08-28 18:05:17 +0200 |
| commit | 7f8941d8b26f373a3fc614edd29166a726bc9d53 (patch) | |
| tree | 97cb4050adb0c2187c0d89bf64bb638f05562773 /src/ChangeLog | |
| parent | eada086196ccb005ded188ac2e58d41f3682a125 (diff) | |
| download | emacs-7f8941d8b26f373a3fc614edd29166a726bc9d53.tar.gz emacs-7f8941d8b26f373a3fc614edd29166a726bc9d53.zip | |
Improve NS dialogs. Add close button, remove ugly casts.
* nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize
button_values to NULL. Call setStykeMask so dialogs get a close button.
(windowShouldClose:): Set window_closed.
(dealloc): New member, free button_values.
(process_dialog:): Make member function. Remove window argument,
replace window with self. Count buttons and allocate and store values
in button_values.
(addButton:value:row:): value is int with the name tag. Call setTag
with tag. Remove return self, declare return value as void.
(addString:row:): Remove return self, declare return value as void.
(addSplit): Remove return self, declare return value as void.
(clicked:): Remove return self, declare return value as void.
Set dialog_return to button_values[seltag]. Code formatting change.
(initFromContents:isQuestion:): Adjust call to process_dialog.
Code formatting change.
(timeout_handler:): Set timer_fired to YES.
(runDialogAt:): Set timer_fired to NO.
Handle click on close button as quit.
* nsterm.h (EmacsDialogPanel): Make timer_fired BOOL.
Add window_closed and button_values. Add void as return value for
add(Button|String|Split). addButton takes int instead of Lisp_Object.
Add process_dialog as new member.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5bafa1a04f8..b5751d859c0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,29 @@ | |||
| 1 | 2012-08-28 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize | ||
| 4 | button_values to NULL. Call setStykeMask so dialogs get a close button. | ||
| 5 | (windowShouldClose:): Set window_closed. | ||
| 6 | (dealloc): New member, free button_values. | ||
| 7 | (process_dialog:): Make member function. Remove window argument, | ||
| 8 | replace window with self. Count buttons and allocate and store values | ||
| 9 | in button_values. | ||
| 10 | (addButton:value:row:): value is int with the name tag. Call setTag | ||
| 11 | with tag. Remove return self, declare return value as void. | ||
| 12 | (addString:row:): Remove return self, declare return value as void. | ||
| 13 | (addSplit): Remove return self, declare return value as void. | ||
| 14 | (clicked:): Remove return self, declare return value as void. | ||
| 15 | Set dialog_return to button_values[seltag]. Code formatting change. | ||
| 16 | (initFromContents:isQuestion:): Adjust call to process_dialog. | ||
| 17 | Code formatting change. | ||
| 18 | (timeout_handler:): Set timer_fired to YES. | ||
| 19 | (runDialogAt:): Set timer_fired to NO. | ||
| 20 | Handle click on close button as quit. | ||
| 21 | |||
| 22 | * nsterm.h (EmacsDialogPanel): Make timer_fired BOOL. | ||
| 23 | Add window_closed and button_values. Add void as return value for | ||
| 24 | add(Button|String|Split). addButton takes int instead of Lisp_Object. | ||
| 25 | Add process_dialog as new member. | ||
| 26 | |||
| 1 | 2012-08-28 Eli Zaretskii <eliz@gnu.org> | 27 | 2012-08-28 Eli Zaretskii <eliz@gnu.org> |
| 2 | 28 | ||
| 3 | * ralloc.c (free_bloc): Don't dereference a 'heap' structure if it | 29 | * ralloc.c (free_bloc): Don't dereference a 'heap' structure if it |