summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
Diffstat (limited to 'window.go')
-rw-r--r--window.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/window.go b/window.go
index 2f7c58a..3543b2b 100644
--- a/window.go
+++ b/window.go
@@ -214,7 +214,7 @@ func CreateWindow(title string, tabname string, x int, y int, custom func() ui.C
log.Println("SERIOUS ERROR n.box == nil in CreateWindow()")
log.Println("SERIOUS ERROR n.box == nil in CreateWindow()")
}
- n.AddTab(title)
+ n.AddTab(title, custom())
// TODO: run custom() here // Oct 9
return n
}
@@ -319,7 +319,7 @@ func CreateBlankWindow(title string, x int, y int) *Node {
return node
}
-func initBlankWindow() ui.Control {
+func (n *Node) initBlankWindow() ui.Control {
hbox := ui.NewHorizontalBox()
hbox.SetPadded(true)