Fixed button showing on GTK+. GTK+ uiButton done!
This commit is contained in:
parent
d88a727799
commit
596ab2e413
2
test.c
2
test.c
|
@ -29,12 +29,12 @@ int main(void)
|
||||||
|
|
||||||
w = uiNewWindow("Hello", 320, 240);
|
w = uiNewWindow("Hello", 320, 240);
|
||||||
uiWindowOnClosing(w, onClosing, NULL);
|
uiWindowOnClosing(w, onClosing, NULL);
|
||||||
uiWindowShow(w);
|
|
||||||
|
|
||||||
button = uiNewButton("Click Me");
|
button = uiNewButton("Click Me");
|
||||||
uiButtonOnClicked(button, onClicked, NULL);
|
uiButtonOnClicked(button, onClicked, NULL);
|
||||||
uiWindowSetChild(w, button);
|
uiWindowSetChild(w, button);
|
||||||
|
|
||||||
|
uiWindowShow(w);
|
||||||
uiMain();
|
uiMain();
|
||||||
printf("after uiMain()\n");
|
printf("after uiMain()\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue