summaryrefslogtreecommitdiff
path: root/new-structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-31 21:07:36 -0500
committerJeff Carr <[email protected]>2021-10-31 21:07:36 -0500
commitc95392d4609f06eb0b86fc6a25b93613ee3770fb (patch)
tree73f1db3e4f756ee8a1bb16ad8f7601f566885dd1 /new-structs.go
parent7fecc2b2a8c87386c0a51c6e4e3942e2def8f514 (diff)
BOX: kill GuiBox
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'new-structs.go')
-rw-r--r--new-structs.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/new-structs.go b/new-structs.go
index d821a3f..bba6347 100644
--- a/new-structs.go
+++ b/new-structs.go
@@ -50,7 +50,6 @@ type Node struct {
children []*Node
window *GuiWindow
- box *GuiBox
area *GuiArea
custom func(*Node)
@@ -85,7 +84,7 @@ func (n *Node) Dump() {
log.Println("gui.Node.Dump() children = ", n.children)
log.Println("gui.Node.Dump() window = ", n.window)
- log.Println("gui.Node.Dump() box = ", n.box)
+ // log.Println("gui.Node.Dump() box = ", n.box)
log.Println("gui.Node.Dump() uiWindow = ", n.uiWindow)
log.Println("gui.Node.Dump() uiTab = ", n.uiTab)
@@ -237,10 +236,12 @@ func (n *Node) AddTab(title string, uiC *ui.Box) *Node {
log.Println("gui.Node.AddTab() ERROR ui.Window == nil")
return nil
}
+ /*
if parent.box == nil {
parent.Dump()
// panic("gui.AddTab() ERROR box == nil")
}
+ */
if parent.uiTab == nil {
inittab := ui.NewTab() // no, not that 'inittab'
parent.uiWindow.SetChild(inittab)