diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-01 21:17:05 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-01 21:17:05 +0200 |
commit | e6503671eecc2026130fe3544d79d644c1657b4c (patch) | |
tree | 9e3ee3350c60b8a97a4026724e12839cbaa76b50 /src/gui/composite_widget.c | |
parent | f8181f1355cf8218daf2ee2153606b7eccf1cb18 (diff) | |
download | abaos-e6503671eecc2026130fe3544d79d644c1657b4c.tar.gz abaos-e6503671eecc2026130fe3544d79d644c1657b4c.tar.bz2 |
replaced some strange access to .base.base with casts of the class to the class needed to
access the proper vtable
Diffstat (limited to 'src/gui/composite_widget.c')
-rw-r--r-- | src/gui/composite_widget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/composite_widget.c b/src/gui/composite_widget.c index 355e3c6..4a7a607 100644 --- a/src/gui/composite_widget.c +++ b/src/gui/composite_widget.c @@ -28,7 +28,7 @@ void composite_widget_init( composite_widget_t *widget, widget_t *parent, const widget->focused_child = NULL; memset( widget->children, 0, MAX_NOF_WIDGET_CHILDREN * sizeof( widget_t * ) ); - widget->base.vtable = (widget_vtable_t *)&composite_widget_vtable; + ((widget_t *)widget)->vtable = (widget_vtable_t *)&composite_widget_vtable; } void composite_widget_draw( void *obj, graphics_context_t *context ) |