summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-05-09 20:25:37 -0500
committerJeff Carr <[email protected]>2023-05-09 20:25:37 -0500
commit26b06253d540fbcac2ae1372aa7fc0b1089bab98 (patch)
tree9afc2600ce0633e85990f8376091d93fec7c6d3a /button.go
parent45ef7f37c4af0495ccf988f2f726aaea24a999e4 (diff)
more code cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'button.go')
-rw-r--r--button.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/button.go b/button.go
index 6204efe..ccd7670 100644
--- a/button.go
+++ b/button.go
@@ -3,7 +3,8 @@ package gui
import "git.wit.org/wit/gui/toolkit"
func (parent *Node) NewButton(name string, custom func()) *Node {
- newNode := parent.newNode(name, toolkit.Button, custom)
+ newNode := parent.newNode(name, toolkit.Button)
+ newNode.Custom = custom
a := newAction(newNode, toolkit.Add)
sendAction(a)