From f3af1f5b7ff78b3f73d7510622fc9633dec36d35 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 19 Oct 2022 13:23:22 -0500 Subject: Refactor to 'gui/toolkit/' * add a example cmds/consolemouse uses a console button to launch the andlabs/ui * fix wrong return value in toolkit/NewLabel() * redirect STDIN output to a file * wonderful fix of Window() exit * finally remove the ancient stupid variables x & y * phase out struct 'box' and use 'node' instead * better names for things: use NewFoo() and NewBar() --- debug.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'debug.go') diff --git a/debug.go b/debug.go index 0b0baa4..7db2847 100644 --- a/debug.go +++ b/debug.go @@ -15,14 +15,15 @@ import ( TODO: add configuration triggers on what to dump out TODO: allow this to be sent to /var/log, syslogd, systemd's journalctl, etc */ -func WatchGUI() { +/* +func watchGUI() { count := 0 for { if count > 20 { log.Println("Sleep() in watchGUI()") if Config.Debug { - DumpBoxes() + dumpBoxes() } count = 0 } @@ -30,14 +31,15 @@ func WatchGUI() { time.Sleep(200 * time.Millisecond) } } +*/ -func DumpWindows() { +func dumpWindows() { for name, _ := range Data.WindowMap { log.Println("gui.DumpWindows() window =", name) } } -func DumpMap() { +func dumpMap() { for name, window := range Data.WindowMap { log.Println("gui.DumpBoxes() MAP: ", name) log.Println("gui.DumpBoxes() BOXES:", name) @@ -47,7 +49,7 @@ func DumpMap() { } } -func DumpBoxes() { +func dumpBoxes() { for name, window := range Data.WindowMap { log.Println("gui.DumpBoxes() MAP: ", name) if window.TabNumber == nil { -- cgit v1.2.3