From f3bb68396afa7452ecf1c8d4744c825a9d81057c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 25 Feb 2023 14:05:25 -0600 Subject: The debugging window is finally useful the gui enabled debugging works --gui-debug works from the command line The debug window can now select things debugging now includes widget types all the debug flags work finally working debugging flags via gui checkboxes add debian packaging rules use log() in the toolkit use a standard log() to simplify debugging flags add reference to 'GO Style Guide' use the same LICENSE from the GO developers. TODO: make this threadsafe TODO: fix plugin stuff Signed-off-by: Jeff Carr --- textbox.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'textbox.go') diff --git a/textbox.go b/textbox.go index 639631d..376b75d 100644 --- a/textbox.go +++ b/textbox.go @@ -1,18 +1,16 @@ package gui -import "log" - func (n *Node) NewTextbox(name string) *Node { - newNode := n.New(name) + newNode := n.New(name, "Textbox") newNode.Widget.Custom = func() { - log.Println("even newer clicker() name in NewTextBox", newNode.Widget) + log(debugGui, "wit/gui clicker()NewTextBox BUT IS EMPTY. FIXME", newNode.Widget) } for _, aplug := range allPlugins { - log.Println("gui.NewTextbox() aplug =", aplug.name, "name =", newNode.Widget.Name) + log(debugGui, "gui.NewTextbox() aplug =", aplug.name, "name =", newNode.Widget.Name) if (aplug.NewTextbox == nil) { - log.Println("\tgui.NewTextbox() aplug.NewTextbox = nil", aplug.name) + log(debugGui, "\tgui.NewTextbox() aplug.NewTextbox = nil", aplug.name) continue } aplug.NewTextbox(&n.Widget, &newNode.Widget) -- cgit v1.2.3