summaryrefslogtreecommitdiff
path: root/tab.go
diff options
context:
space:
mode:
Diffstat (limited to 'tab.go')
-rw-r--r--tab.go13
1 files changed, 3 insertions, 10 deletions
diff --git a/tab.go b/tab.go
index 6e2e47e..ce840b5 100644
--- a/tab.go
+++ b/tab.go
@@ -1,22 +1,15 @@
package gui
import (
+ "git.wit.org/wit/gui/toolkit"
)
// This function should make a new node with the parent and
// the 'tab' as a child
func (n *Node) NewTab(text string) *Node {
- newNode := n.New(text, "Tab")
-
- for _, aplug := range allPlugins {
- log(debugGui, "gui.NewTab() aplug =", aplug.name, "name =", newNode.Widget.Name)
- if (aplug.NewTab == nil) {
- log(debugGui, "\tgui.NewTab() aplug.NewTab = nil", aplug.name)
- continue
- }
- aplug.NewTab(&n.Widget, &newNode.Widget)
- }
+ newNode := n.New(text, toolkit.Tab, nil)
+ send(n, newNode)
return newNode
}