summaryrefslogtreecommitdiff
path: root/tab.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-21 11:30:12 -0600
committerJeff Carr <[email protected]>2024-01-21 11:30:12 -0600
commit40f819c3a28233bccb2cd48446639e5130fe6211 (patch)
tree5160e228edf4068a4286c3233289e67059ce0358 /tab.go
parent4f3255c681c4a5927be7b104e1c8195f01cabdb6 (diff)
more logging updates
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tab.go')
-rw-r--r--tab.go20
1 files changed, 9 insertions, 11 deletions
diff --git a/tab.go b/tab.go
index 80bb151..e684df9 100644
--- a/tab.go
+++ b/tab.go
@@ -32,16 +32,16 @@ func (p *node) newTab(n *node) {
}
t := p.tk
- log.Log(TOOLKIT, "newTab() START", n.WidgetId, n.ParentId)
+ log.Log(ANDLABS, "newTab() START", n.WidgetId, n.ParentId)
if t.uiTab == nil {
// this means you have to make a new tab
- log.Log(TOOLKIT, "newTab() GOOD. This should be the first tab:", n.WidgetId, n.ParentId)
+ log.Log(ANDLABS, "newTab() GOOD. This should be the first tab:", n.WidgetId, n.ParentId)
newt = rawTab(t.uiWindow, widget.GetString(n.value))
t.uiTab = newt.uiTab
} else {
// this means you have to append a tab
- log.Log(TOOLKIT, "newTab() GOOD. This should be an additional tab:", n.WidgetId, n.ParentId)
+ log.Log(ANDLABS, "newTab() GOOD. This should be an additional tab:", n.WidgetId, n.ParentId)
if n.WidgetType == widget.Tab {
// andlabs doesn't have multiple tab widgets so make a fake one?
// this makes a guiWidget internal structure with the parent values
@@ -63,19 +63,17 @@ func (p *node) newTab(n *node) {
func tabSetMargined(tab *ui.Tab, b bool) {
c := tab.NumPages()
for i := 0; i < c; i++ {
- log.Log(TOOLKIT, "SetMargined", i, b)
+ log.Log(ANDLABS, "SetMargined", i, b)
tab.SetMargined(i, b)
}
}
func rawTab(w *ui.Window, name string) *guiWidget {
var newt guiWidget
- log.Log(TOOLKIT, "rawTab() START", name)
+ log.Log(ANDLABS, "rawTab() START", name)
if w == nil {
log.Log(ERROR, "UiWindow == nil. I can't add a tab without a window")
- log.Log(ERROR, "UiWindow == nil. I can't add a tab without a window")
- log.Log(ERROR, "UiWindow == nil. I can't add a tab without a window")
// sleep(1)
return nil
}
@@ -84,20 +82,20 @@ func rawTab(w *ui.Window, name string) *guiWidget {
w.SetChild(tab)
newt.uiTab = tab
newt.uiControl = tab
- log.Log(TOOLKIT, "rawTab() END", name)
+ log.Log(ANDLABS, "rawTab() END", name)
return &newt
}
/*
func (t *guiWidget) appendTab(name string) *guiWidget {
var newT guiWidget
- log.Log(TOOLKIT, "appendTab() ADD", name)
+ log.Log(ANDLABS, "appendTab() ADD", name)
if t.uiTab == nil {
- log.Log(TOOLKIT, "UiWindow == nil. I can't add a widget without a place to put it")
+ log.Log(ANDLABS, "UiWindow == nil. I can't add a widget without a place to put it")
panic("should never have happened. wit/gui/toolkit has ui.Tab == nil")
}
- log.Log(TOOLKIT, "appendTab() START name =", name)
+ log.Log(ANDLABS, "appendTab() START name =", name)
var hbox *ui.Box
if defaultBehavior {