summaryrefslogtreecommitdiff
path: root/tab.go
diff options
context:
space:
mode:
Diffstat (limited to 'tab.go')
-rw-r--r--tab.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/tab.go b/tab.go
index 59f6496..10c2e08 100644
--- a/tab.go
+++ b/tab.go
@@ -30,12 +30,12 @@ func (n *Node) NewTab(text string) *Node {
}
newNode := n.newNode(text, toolkit.Tab, nil)
- var a toolkit.Action
- a.ActionType = toolkit.Add
- a.Name = text
- a.Text = text
- newaction(&a, newNode, n)
+ a := newAction(newNode, toolkit.Add)
+ sendAction(a, newNode, n)
+ // by default, create a box inside the tab
+ // TODO: allow this to be configurable
newBox := newNode.NewBox(text, true)
+
return newBox
}