summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-05-09 19:24:37 -0500
committerJeff Carr <[email protected]>2023-05-09 19:24:37 -0500
commitcb2c88d8c12a58f4e791dffeaba0a685d63bbc79 (patch)
tree348a812e153d152f19502f99bf402b9233f6c267 /debug.go
parent28b7470328707da8d9701c4af1493f4730bcd1f9 (diff)
getting pretty clean at this point
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/debug.go b/debug.go
index 2df06cc..955a246 100644
--- a/debug.go
+++ b/debug.go
@@ -71,15 +71,12 @@ func SetFlag (s string, b bool) {
log(debugGui, "Can't set unknown flag", s)
}
- var a toolkit.Action
+ a := new(toolkit.Action)
a.ActionType = toolkit.Set
a.WidgetType = toolkit.Flag
a.S = s
a.B = b
- // a.Widget = &newNode.widget
- // a.Where = &n.widget
- // action(&a)
- newaction(&a, nil, nil)
+ sendAction(a)
}
func ShowDebugValues() {
@@ -118,10 +115,10 @@ func (n *Node) Dump() {
}
Indent(b, "NODE DUMP END")
- var a toolkit.Action
+ a := new(toolkit.Action)
a.ActionType = toolkit.Dump
a.WidgetId = n.id
- newaction(&a, activeWidget, nil)
+ sendAction(a)
}
func Indent(b bool, a ...interface{}) {