diff options
| author | Jeff Carr <[email protected]> | 2023-05-09 20:25:37 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-05-09 20:25:37 -0500 |
| commit | 26b06253d540fbcac2ae1372aa7fc0b1089bab98 (patch) | |
| tree | 9afc2600ce0633e85990f8376091d93fec7c6d3a /button.go | |
| parent | 45ef7f37c4af0495ccf988f2f726aaea24a999e4 (diff) | |
more code cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'button.go')
| -rw-r--r-- | button.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |
