summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-28 13:14:43 -0600
committerJeff Carr <[email protected]>2024-01-28 13:14:43 -0600
commitdab898f0f945fc3b0a5747f38b7f22b59d539117 (patch)
treed20bb2df81e875b25d1ae74cda93eb5c4ec60696 /debug.go
parent44ee09f79843d3b9fca666b2c2dbd298a4c4eaba (diff)
cleaner debugging
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go34
1 files changed, 4 insertions, 30 deletions
diff --git a/debug.go b/debug.go
index cf884cf..04f2a90 100644
--- a/debug.go
+++ b/debug.go
@@ -7,20 +7,20 @@ import (
"go.wit.com/widget"
)
-func (w *guiWidget) dumpTree(draw bool) {
+func (w *guiWidget) dumpTree() {
// log.Log(ERROR, "dumpTree w", w.node.WidgetId, w.WidgetType, w.String())
if w == nil {
log.Log(ERROR, "dumpTree w.TK == nil", w.node.WidgetId, w.WidgetType, w.String())
return
}
- w.showWidgetPlacement(true, "dumpTree()")
+ w.showWidgetPlacement("dumpTree()")
for _, child := range w.children {
- child.dumpTree(draw)
+ child.dumpTree()
}
}
-func (w *guiWidget) showWidgetPlacement(b bool, s string) {
+func (w *guiWidget) showWidgetPlacement(s string) {
var s1 string
var pId int
if w.node.Parent == nil {
@@ -45,29 +45,3 @@ func (w *guiWidget) showWidgetPlacement(b bool, s string) {
tmp := "." + w.String() + "."
log.Log(INFO, s1, s, w.node.WidgetType, ",", tmp, "jcarr") // , "text=", w.text)
}
-
-/*
-func dumpWidget(n *tree.Node, pad string) {
- log.Log(NOW, "node:", pad, n.WidgetId, "At(", n.AtW, n.AtH, ") ,", n.WidgetType, ", n.progname =", n.progname, ", n.label =", n.label)
-}
-*/
-/*
-func listWidgets(n *tree.Node) {
- if n == nil {
- return
- }
-
- var pad string
- for i := 0; i < me.depth; i++ {
- pad = pad + " "
- }
- n.dumpWidget(pad)
-
- for _, child := range n.children {
- me.depth += 1
- child.listWidgets()
- me.depth -= 1
- }
- return
-}
-*/