summaryrefslogtreecommitdiff
path: root/toolkit/andlabs/combobox.go
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/andlabs/combobox.go')
-rw-r--r--toolkit/andlabs/combobox.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/toolkit/andlabs/combobox.go b/toolkit/andlabs/combobox.go
index 100434e..293cc42 100644
--- a/toolkit/andlabs/combobox.go
+++ b/toolkit/andlabs/combobox.go
@@ -8,10 +8,8 @@ import (
func (t *andlabsT) newCombobox(a *toolkit.Action) *andlabsT {
var newt andlabsT
- w := a.Widget
log(debugToolkit, "newCombobox() START", a.Name)
- newt.tw = w
newt.wId = a.WidgetId
newt.WidgetType = a.WidgetType
s := ui.NewEditableCombobox()
@@ -23,8 +21,8 @@ func (t *andlabsT) newCombobox(a *toolkit.Action) *andlabsT {
newt.val = make(map[int]string)
s.OnChanged(func(spin *ui.EditableCombobox) {
- newt.tw.S = spin.Text()
- newt.commonChange(newt.tw, a.WidgetId)
+ newt.s = spin.Text()
+ newt.doUserEvent()
})
return &newt