aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwidget.c
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-02-02 19:56:05 +0100
committerJoel Bodenmann <joel@unormal.org>2014-02-02 19:56:05 +0100
commit9774c86d0e8c171f414eecdf6b1b3f9598986b69 (patch)
tree69ede6a9893ea9f157719ba2d9dfc84d05e4c588 /src/gwin/gwidget.c
parentd646a43b6eb9e0cfb8abd37cf56344b8f65619a5 (diff)
parentd2de6c351785f323fd4b2a4e337a95bda4c9a626 (diff)
downloaduGFX-9774c86d0e8c171f414eecdf6b1b3f9598986b69.tar.gz
uGFX-9774c86d0e8c171f414eecdf6b1b3f9598986b69.tar.bz2
uGFX-9774c86d0e8c171f414eecdf6b1b3f9598986b69.zip
Merge branch 'master' into gwin
Diffstat (limited to 'src/gwin/gwidget.c')
-rw-r--r--src/gwin/gwidget.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gwin/gwidget.c b/src/gwin/gwidget.c
index 484b8c37..75a69667 100644
--- a/src/gwin/gwidget.c
+++ b/src/gwin/gwidget.c
@@ -224,11 +224,17 @@ static void gwidgetEvent(void *param, GEvent *pe) {
}
#endif
-void _gwidgetInit(void) {
+void _gwidgetInit(void)
+{
geventListenerInit(&gl);
geventRegisterCallback(&gl, gwidgetEvent, 0);
}
+void _gwidgetDeinit(void)
+{
+ /* ToDo */
+}
+
GHandle _gwidgetCreate(GDisplay *g, GWidgetObject *pgw, const GWidgetInit *pInit, const gwidgetVMT *vmt) {
if (!(pgw = (GWidgetObject *)_gwindowCreate(g, &pgw->g, &pInit->g, &vmt->g, GWIN_FLG_WIDGET|GWIN_FLG_ENABLED)))
return 0;