diff options
| author | Jeff Carr <[email protected]> | 2023-02-25 14:05:25 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-02-25 14:05:25 -0600 |
| commit | f3bb68396afa7452ecf1c8d4744c825a9d81057c (patch) | |
| tree | 00b55a17cee7a8e2f795c479a84a844779993c1c /tab.go | |
| parent | 355e5ec968427c2b07b78fec12224f31a65df740 (diff) | |
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 <[email protected]>
Diffstat (limited to 'tab.go')
| -rw-r--r-- | tab.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,19 +1,18 @@ package gui import ( - "log" ) // This function should make a new node with the parent and // the 'tab' as a child func (n *Node) NewTab(text string) *Node { - newNode := n.New(text) + newNode := n.New(text, "Tab") for _, aplug := range allPlugins { - log.Println("gui.NewTab() aplug =", aplug.name, "name =", newNode.Widget.Name) + log(debugGui, "gui.NewTab() aplug =", aplug.name, "name =", newNode.Widget.Name) if (aplug.NewTab == nil) { - log.Println("\tgui.NewTab() aplug.NewTab = nil", aplug.name) + log(debugGui, "\tgui.NewTab() aplug.NewTab = nil", aplug.name) continue } aplug.NewTab(&n.Widget, &newNode.Widget) |
