summaryrefslogtreecommitdiff
path: root/tab.go
diff options
context:
space:
mode:
Diffstat (limited to 'tab.go')
-rw-r--r--tab.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/tab.go b/tab.go
index 4ed5384..49632ee 100644
--- a/tab.go
+++ b/tab.go
@@ -11,8 +11,9 @@ func (n *Node) NewTab(text string) *Node {
newNode := n.New(text, toolkit.Tab, nil)
var a toolkit.Action
- a.Type = toolkit.Add
- a.Title = text
+ a.ActionType = toolkit.Add
+ a.Name = text
+ a.Text = text
newaction(&a, newNode, n)
newBox := newNode.NewBox(text, true)