summaryrefslogtreecommitdiff
path: root/toolkit/andlabs/button.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/button.go
parent8100e7a1abdc31afbf65af6d0b7cd7cb0fff69eb (diff)
andlabs: deprecate old code
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/button.go')
-rw-r--r--toolkit/andlabs/button.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/toolkit/andlabs/button.go b/toolkit/andlabs/button.go
index b3eae7b..a6260b5 100644
--- a/toolkit/andlabs/button.go
+++ b/toolkit/andlabs/button.go
@@ -19,12 +19,10 @@ func (p *node) newButton(n *node) {
b := ui.NewButton(n.Text)
newt.uiButton = b
newt.uiControl = b
- newt.wId = n.WidgetId
- newt.WidgetType = n.WidgetType
newt.parent = t
b.OnClicked(func(*ui.Button) {
- newt.doUserEvent()
+ n.doUserEvent()
})
n.tk = newt