summaryrefslogtreecommitdiff
path: root/toolkit/andlabs/checkbox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-27 12:41:42 -0500
committerJeff Carr <[email protected]>2023-04-27 12:41:42 -0500
commit253dcb012f6d4fc861e6fc9a66fd2c7260ead442 (patch)
treea3092695fa5d6769d5898e3319016f0bb84ae6e9 /toolkit/andlabs/checkbox.go
parent8100e7a1abdc31afbf65af6d0b7cd7cb0fff69eb (diff)
andlabs: deprecate old code
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/checkbox.go')
-rw-r--r--toolkit/andlabs/checkbox.go19
1 files changed, 1 insertions, 18 deletions
diff --git a/toolkit/andlabs/checkbox.go b/toolkit/andlabs/checkbox.go
index 49096a1..b822ca1 100644
--- a/toolkit/andlabs/checkbox.go
+++ b/toolkit/andlabs/checkbox.go
@@ -8,10 +8,6 @@ import (
func (p *node) newCheckbox(n *node) {
newt := new(andlabsT)
log(debugToolkit, "newCheckbox()", n.Name, n.WidgetType)
- newt.WidgetType = n.WidgetType
- newt.wId = n.WidgetId
- newt.Name = n.Name
- newt.Text = n.Text
newt.uiCheckbox = ui.NewCheckbox(n.Text)
newt.uiControl = newt.uiCheckbox
@@ -19,7 +15,7 @@ func (p *node) newCheckbox(n *node) {
newt.uiCheckbox.OnToggled(func(spin *ui.Checkbox) {
newt.b = newt.checked()
log(debugChange, "val =", newt.b)
- newt.doUserEvent()
+ n.doUserEvent()
})
n.tk = newt
@@ -29,16 +25,3 @@ func (p *node) newCheckbox(n *node) {
func (t *andlabsT) checked() bool {
return t.uiCheckbox.Checked()
}
-
-/*
-func newCheckbox(a *toolkit.Action) {
- log(debugToolkit, "newCheckbox()", a.Name)
-
- t := andlabs[a.ParentId]
- if (t == nil) {
- listMap(debugError)
- return
- }
- newt := t.newCheckbox(a)
-}
-*/