summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-01 13:43:51 -0600
committerJeff Carr <[email protected]>2025-02-01 13:43:51 -0600
commite4f0524bdf5331d91c95c9cb89eb4f40138a0ab1 (patch)
treeda74a51b73f8c9949062b0a2b8965c3c917af18e /debug.go
parentebb03139bb875cef38dbaff1aaaf5a546ff1ce1a (diff)
lots of code cleanup and debugging work
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/debug.go b/debug.go
index e572f98..c880aba 100644
--- a/debug.go
+++ b/debug.go
@@ -16,14 +16,15 @@ func (w *guiWidget) dumpTree(s string) {
log.Log(ERROR, "dump w.TK == nil", w.node.WidgetId, w.WidgetType, w.String())
return
}
- w.showWidgetPlacement("dumpTree() " + s)
+ w.dumpWidget("dumpTree() " + s)
for _, child := range w.children {
child.dumpTree(s)
}
}
-func (w *guiWidget) showWidgetPlacement(s string) {
+// a standard function to print out information about a widget
+func (w *guiWidget) dumpWidget(s string) {
var s1 string
var pId int
if w.node.Parent == nil {