diff options
| author | Jeff Carr <[email protected]> | 2023-04-06 20:50:00 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-06 20:50:00 -0500 |
| commit | 27e76ebb005280db2bbbd02b0efa6d7faf4bcec7 (patch) | |
| tree | aa86dd208e05a9f088258d5cbba3d9e350f95cfd /toolkit/andlabs/textbox.go | |
| parent | 933a7e4df0e6a28ad06dfd60ab2928d5cdf916f9 (diff) | |
correctly deprecate *widget to plugins
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/textbox.go')
| -rw-r--r-- | toolkit/andlabs/textbox.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/toolkit/andlabs/textbox.go b/toolkit/andlabs/textbox.go index 36a9777..626eec4 100644 --- a/toolkit/andlabs/textbox.go +++ b/toolkit/andlabs/textbox.go @@ -8,26 +8,26 @@ import ( ) // func newTextbox(a *toolkit.Action) { -func (t *andlabsT) newTextbox(w *toolkit.Widget) *andlabsT { +func (t *andlabsT) newTextbox() *andlabsT { var newt andlabsT c := ui.NewNonWrappingMultilineEntry() newt.uiMultilineEntry = c newt.uiControl = c - newt.tw = w newt.WidgetType = toolkit.Textbox c.OnChanged(func(spin *ui.MultilineEntry) { - t.s = spin.Text() + newt.s = spin.Text() // this is still dangerous log(debugChange, "Not yet safe to trigger on change for ui.MultilineEntry") + newt.s = spin.Text() + newt.doUserEvent() }) return &newt } func newTextbox(a *toolkit.Action) { - w := a.Widget log(debugToolkit, "newCombobox()", a.Name) t := andlabs[a.ParentId] @@ -36,7 +36,8 @@ func newTextbox(a *toolkit.Action) { listMap(debugToolkit) return } - newt := t.newTextbox(w) + newt := t.newTextbox() newt.Name = a.Name + newt.wId = a.WidgetId place(a, t, newt) } |
