mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Big sprawling dialog-box commit covering all sorts of things.
Buttons now have an `iscancel' flag to go with `isdefault'; dlg_last_focused() now explicitly passes the control it _doesn't_ care about (`I want the last control that had focus and isn't this one'); and in the GTK implementation, various fixes have happened, notably including arrow keys working sensibly in list boxes and the treeview and short font aliases being expanded correctly to initialise the font selectors. [originally from svn r2958]
This commit is contained in:
14
dialog.h
14
dialog.h
@ -282,6 +282,11 @@ union control {
|
||||
* Return even if it doesn't have the input focus.
|
||||
*/
|
||||
int isdefault;
|
||||
/*
|
||||
* Also, the reverse of this: a default cancel-type button,
|
||||
* which is implicitly pressed when you hit Escape.
|
||||
*/
|
||||
int iscancel;
|
||||
} button;
|
||||
struct {
|
||||
STANDARD_PREFIX;
|
||||
@ -599,11 +604,12 @@ void dlg_update_done(union control *ctrl, void *dlg);
|
||||
*/
|
||||
void dlg_set_focus(union control *ctrl, void *dlg);
|
||||
/*
|
||||
* Return the `ctrl' structure for the control that had the input
|
||||
* focus before this one. This is NOT GUARANTEED to work on all
|
||||
* platforms, so don't base any critical functionality on it!
|
||||
* Return the `ctrl' structure for the most recent control that had
|
||||
* the input focus apart from the one mentioned. This is NOT
|
||||
* GUARANTEED to work on all platforms, so don't base any critical
|
||||
* functionality on it!
|
||||
*/
|
||||
union control *dlg_last_focused(void *dlg);
|
||||
union control *dlg_last_focused(union control *ctrl, void *dlg);
|
||||
/*
|
||||
* During event processing, you might well want to give an error
|
||||
* indication to the user. dlg_beep() is a quick and easy generic
|
||||
|
Reference in New Issue
Block a user