summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
Diffstat (limited to 'button.go')
-rw-r--r--button.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/button.go b/button.go
index b083474..a6026a1 100644
--- a/button.go
+++ b/button.go
@@ -6,8 +6,9 @@ func (n *Node) NewButton(name string, custom func()) *Node {
newNode := n.New(name, toolkit.Button, custom)
var a toolkit.Action
- a.Title = name
- a.Type = toolkit.Add
+ a.Name = name
+ a.Text = name
+ a.ActionType = toolkit.Add
a.Callback = callback
newaction(&a, newNode, n)