Changed the default uiWindowOnClosing() behavior. Decided to keep the int return.
This commit is contained in:
parent
553941a5dd
commit
6c9a122a7d
3
TODO.md
3
TODO.md
|
@ -1,5 +1,3 @@
|
|||
- should uiWindowOnClosing() really return an int?
|
||||
- if so, should the default return 0 instead of 1?
|
||||
- note that uiInitOptions should be initialized to zero
|
||||
- have a cbSize member
|
||||
- drop "Page" from uiTab method names? (uiTabAppendPage() -> uiTabAppend())
|
||||
|
@ -61,3 +59,4 @@ notes to self
|
|||
- reconsider this, as the pointer array code does work with the first invalid index...
|
||||
- we would need to test everything else with it
|
||||
- note that uiTabInsertPageBefore() does NOT change the current tab page (it may change its index if inserting before the current page)
|
||||
- note that the default action for uiWindowOnClosing() is to return 0 (keep the window open)
|
||||
|
|
|
@ -49,7 +49,7 @@ struct window {
|
|||
|
||||
static int defaultOnClosing(uiWindow *w, void *data)
|
||||
{
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void windowDestroy(uiControl *c)
|
||||
|
|
|
@ -36,7 +36,7 @@ static gboolean onClosing(GtkWidget *win, GdkEvent *e, gpointer data)
|
|||
|
||||
static int defaultOnClosing(uiWindow *w, void *data)
|
||||
{
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void windowDestroy(uiControl *c)
|
||||
|
|
|
@ -73,7 +73,7 @@ ATOM registerWindowClass(HICON hDefaultIcon, HCURSOR hDefaultCursor)
|
|||
|
||||
static int defaultOnClosing(uiWindow *w, void *data)
|
||||
{
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void windowDestroy(uiControl *c)
|
||||
|
|
Loading…
Reference in New Issue