Changed the default uiWindowOnClosing() behavior. Decided to keep the int return.

This commit is contained in:
Pietro Gagliardi 2015-05-07 20:01:17 -04:00
parent 553941a5dd
commit 6c9a122a7d
4 changed files with 4 additions and 5 deletions

View File

@ -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 - note that uiInitOptions should be initialized to zero
- have a cbSize member - have a cbSize member
- drop "Page" from uiTab method names? (uiTabAppendPage() -> uiTabAppend()) - 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... - reconsider this, as the pointer array code does work with the first invalid index...
- we would need to test everything else with it - 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 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)

View File

@ -49,7 +49,7 @@ struct window {
static int defaultOnClosing(uiWindow *w, void *data) static int defaultOnClosing(uiWindow *w, void *data)
{ {
return 1; return 0;
} }
static void windowDestroy(uiControl *c) static void windowDestroy(uiControl *c)

View File

@ -36,7 +36,7 @@ static gboolean onClosing(GtkWidget *win, GdkEvent *e, gpointer data)
static int defaultOnClosing(uiWindow *w, void *data) static int defaultOnClosing(uiWindow *w, void *data)
{ {
return 1; return 0;
} }
static void windowDestroy(uiControl *c) static void windowDestroy(uiControl *c)

View File

@ -73,7 +73,7 @@ ATOM registerWindowClass(HICON hDefaultIcon, HCURSOR hDefaultCursor)
static int defaultOnClosing(uiWindow *w, void *data) static int defaultOnClosing(uiWindow *w, void *data)
{ {
return 1; return 0;
} }
static void windowDestroy(uiControl *c) static void windowDestroy(uiControl *c)