From e002f833209109763e9df90d91b9ef0f498b22b5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 9 Oct 2021 10:46:57 -0500 Subject: NODE: climbing up the rabbit hole --- window.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'window.go') 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) -- cgit v1.2.3