diff --git a/demos/modules/gwin/button/main.c b/demos/modules/gwin/button/main.c index 86966a54..1ed2ac43 100644 --- a/demos/modules/gwin/button/main.c +++ b/demos/modules/gwin/button/main.c @@ -37,9 +37,10 @@ int main(void) { // Attach the mouse input gwinAttachMouse(0); + // create the widget createWidgets(); - // We want to listen for widget events + // We want to listen for widget events geventListenerInit(&gl); gwinAttachListener(&gl); diff --git a/demos/modules/gwin/checkbox/main.c b/demos/modules/gwin/checkbox/main.c index fbef7187..c6094323 100644 --- a/demos/modules/gwin/checkbox/main.c +++ b/demos/modules/gwin/checkbox/main.c @@ -37,9 +37,10 @@ int main(void) { // Attach the mouse input gwinAttachMouse(0); + // create the widget createWidgets(); - // We want to listen for widget events + // We want to listen for widget events geventListenerInit(&gl); gwinAttachListener(&gl);