summaryrefslogtreecommitdiff
path: root/src/gui/widget.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-07-01 20:10:14 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-07-01 20:10:14 +0200
commit85df1646ecccc7e484e2efc903166b89e4c55684 (patch)
tree66bb29f09354a3a9bb7b448dfc10929f27d0210e /src/gui/widget.c
parent8fa1c09199378f86ca7c3fc4b844bd272926cdf6 (diff)
downloadabaos-85df1646ecccc7e484e2efc903166b89e4c55684.tar.gz
abaos-85df1646ecccc7e484e2efc903166b89e4c55684.tar.bz2
fixed get_focus error in widget (called the wrong parent)
the text widget reacts to mouse down and key events and appends text to the output buffer so we have text input in GUI mode
Diffstat (limited to 'src/gui/widget.c')
-rw-r--r--src/gui/widget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widget.c b/src/gui/widget.c
index 1c26680..81ab264 100644
--- a/src/gui/widget.c
+++ b/src/gui/widget.c
@@ -46,7 +46,7 @@ void widget_get_focus( void *obj, widget_t *widget )
widget_t *o = obj;
if( o->parent != NULL ) {
- o->parent->vtable->get_focus( widget->parent, widget );
+ o->parent->vtable->get_focus( o->parent, widget );
}
}