From e4f0524bdf5331d91c95c9cb89eb4f40138a0ab1 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 1 Feb 2025 13:43:51 -0600 Subject: lots of code cleanup and debugging work --- debug.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'debug.go') 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 { -- cgit v1.2.3