Fixed build warnings. More TODOs.
This commit is contained in:
parent
bb81eebefe
commit
7b73734854
4
TODO.md
4
TODO.md
|
@ -10,9 +10,10 @@
|
||||||
- make sure all terminology is consistent
|
- make sure all terminology is consistent
|
||||||
- 32-bit Mac OS X support (requires lots of code changes)
|
- 32-bit Mac OS X support (requires lots of code changes)
|
||||||
- add a test for hidden controls when a window is shown
|
- add a test for hidden controls when a window is shown
|
||||||
- WS_CLIPCHILDREN
|
- SWP_NOCOPYBITS (or was it WS_CLIPCHILDREN?)
|
||||||
- buttons not in tab get drawover issues
|
- buttons not in tab get drawover issues
|
||||||
- buttons in tab without transparent drawing code get copied into the label when stack shown and rehidden
|
- buttons in tab without transparent drawing code get copied into the label when stack shown and rehidden
|
||||||
|
- see if we can clean up the GTK+ backend
|
||||||
|
|
||||||
ultimately:
|
ultimately:
|
||||||
- make everything vtable-based
|
- make everything vtable-based
|
||||||
|
@ -21,3 +22,4 @@ ultimately:
|
||||||
- figure out what to do about custom containers
|
- figure out what to do about custom containers
|
||||||
- rename container to parent?
|
- rename container to parent?
|
||||||
- make the code flow of all platforms fully symmetrical
|
- make the code flow of all platforms fully symmetrical
|
||||||
|
- add some sort of runtime type checking
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
struct button {
|
struct button {
|
||||||
uiButton b;
|
uiButton b;
|
||||||
void (*onClicked)(uiControl *, void *);
|
void (*onClicked)(uiButton *, void *);
|
||||||
void *onClickedData;
|
void *onClickedData;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ static void setText(uiButton *b, const char *text)
|
||||||
gtk_button_set_label(BUTTON(b), text);
|
gtk_button_set_label(BUTTON(b), text);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setOnClicked(uiButton *bb, void (*f)(uiControl *, void *), void *data)
|
static void setOnClicked(uiButton *bb, void (*f)(uiButton *, void *), void *data)
|
||||||
{
|
{
|
||||||
struct button *b = (struct button *) bb;
|
struct button *b = (struct button *) bb;
|
||||||
|
|
||||||
|
|
|
@ -31,12 +31,12 @@ static void onDestroy(GtkWidget *widget, gpointer data)
|
||||||
|
|
||||||
static char *getText(uiCheckbox *c)
|
static char *getText(uiCheckbox *c)
|
||||||
{
|
{
|
||||||
return g_strdup(gtk_button_get_label(CHECKBOX(c)));
|
return g_strdup(gtk_button_get_label(GTK_BUTTON(CHECKBOX(c))));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setText(uiCheckbox *c, const char *text)
|
static void setText(uiCheckbox *c, const char *text)
|
||||||
{
|
{
|
||||||
gtk_button_set_label(CHECKBOX(c), text);
|
gtk_button_set_label(GTK_BUTTON(CHECKBOX(c)), text);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setOnToggled(uiCheckbox *cc, void (*f)(uiCheckbox *, void *), void *data)
|
static void setOnToggled(uiCheckbox *cc, void (*f)(uiCheckbox *, void *), void *data)
|
||||||
|
|
|
@ -222,5 +222,4 @@ void uiUnixNewControl(uiControl *c, GType type, gboolean inScrolledWindow, gbool
|
||||||
gtk_widget_show_all(s->immediate);
|
gtk_widget_show_all(s->immediate);
|
||||||
|
|
||||||
c->Internal = s;
|
c->Internal = s;
|
||||||
return c;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,6 @@ static void addPage(uiTab *tt, const char *name, uiControl *child)
|
||||||
|
|
||||||
uiTab *uiNewTab(void)
|
uiTab *uiNewTab(void)
|
||||||
{
|
{
|
||||||
uiControl *c;
|
|
||||||
struct tab *t;
|
struct tab *t;
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ static gboolean onClosing(GtkWidget *win, GdkEvent *e, gpointer data)
|
||||||
struct window *w = (struct window *) data;
|
struct window *w = (struct window *) data;
|
||||||
|
|
||||||
// return exact values just in case
|
// return exact values just in case
|
||||||
if ((*(w->onClosing))(w, w->onClosingData))
|
if ((*(w->onClosing))(uiWindow(w), w->onClosingData))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue