diff options
Diffstat (limited to 'tab.go')
| -rw-r--r-- | tab.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,19 +1,18 @@ package gui import ( - "log" ) // 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) + newNode := n.New(text, "Tab") for _, aplug := range allPlugins { - log.Println("gui.NewTab() aplug =", aplug.name, "name =", newNode.Widget.Name) + log(debugGui, "gui.NewTab() aplug =", aplug.name, "name =", newNode.Widget.Name) if (aplug.NewTab == nil) { - log.Println("\tgui.NewTab() aplug.NewTab = nil", aplug.name) + log(debugGui, "\tgui.NewTab() aplug.NewTab = nil", aplug.name) continue } aplug.NewTab(&n.Widget, &newNode.Widget) |
