diff options
| author | Jeff Carr <[email protected]> | 2021-10-06 14:32:07 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-06 14:32:07 -0500 |
| commit | 36e2c6d2e3c266f32325985e98c3776755fdd511 (patch) | |
| tree | 744496b2fb22c9c4ba51bfacb4195689e05e9036 /window.go | |
| parent | 7c6fae3efea5e96ae8aad2a3171f42ab4e69b3b1 (diff) | |
REFACTOR: things are back to working as they were
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'window.go')
| -rw-r--r-- | window.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -146,7 +146,7 @@ func DeleteWindow(name string) { func CreateWindow(title string, tabname string, x int, y int, custom func() ui.Control) *GuiBox { box := CreateBlankWindow(title, x, y) - box.InitTab(title) + box.InitTab(title, custom) return box } @@ -173,7 +173,7 @@ func CreateBlankWindow(title string, x int, y int) *GuiBox { return box } -func initBlankWindow() ui.Control { +func InitBlankWindow() ui.Control { hbox := ui.NewHorizontalBox() hbox.SetPadded(true) @@ -215,7 +215,7 @@ func mapWindow(window *ui.Window, title string, x int, y int) *GuiBox { return &box } -func NewWindow(title string, x int, y int) { +func NewWindow(title string, x int, y int) *GuiBox { box := mapWindow(nil, title, x, y) log.Println("gui.NewWindow() title = box.Name =", box.Name) @@ -235,4 +235,5 @@ func NewWindow(title string, x int, y int) { window.Show() box.Window.UiWindow = window + return box } |
