summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-09 10:46:57 -0500
committerJeff Carr <[email protected]>2021-10-09 10:46:57 -0500
commite002f833209109763e9df90d91b9ef0f498b22b5 (patch)
tree6dca61decdf3d339c712381f940051043ffcb3b3 /window.go
parente45a106d95e3043828735cf76aa487af837a2137 (diff)
NODE: climbing up the rabbit hole
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)