summaryrefslogtreecommitdiff
path: root/widget.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-20 20:24:58 -0600
committerJeff Carr <[email protected]>2024-01-20 20:24:58 -0600
commit15e9548cf50fad96ee938f134daca32d7b83b896 (patch)
tree0663412f430517c55697325cea59c339c05c57bc /widget.go
parentc1b2c4a18200172f01cf9a0d02aa632f087224d5 (diff)
it's my memory so I can forgetv0.12.6
lots of general improvements ready to fix gocui working on log settings fix the debugger Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'widget.go')
-rw-r--r--widget.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/widget.go b/widget.go
index ed8a12d..3cf6e2d 100644
--- a/widget.go
+++ b/widget.go
@@ -30,7 +30,8 @@ func setActiveWidget(w *gui.Node) {
}
*/
-func DebugWidgetWindow(p *gui.Node) *gadgets.BasicWindow {
+func DebugWidgetWindow() *gadgets.BasicWindow {
+ p := gui.TreeRoot()
var w *gadgets.BasicWindow
w = gadgets.NewBasicWindow(p, "Widgets")
w.Draw()
@@ -126,7 +127,7 @@ func DebugWidgetWindow(p *gui.Node) *gadgets.BasicWindow {
activeJunk.NewLabel("test junk")
if activeWidget == nil {
- setActiveWidget(me.myGui)
+ setActiveWidget(me.treeRoot)
}
return w
@@ -169,7 +170,7 @@ func debugAddWidgetButtons(n *gui.Node) {
debugGrid.NewLabel("foo (2,1)")
*/
// SetDebug(false)
- DebugWidgetWindow(debugGrid)
+ DebugWidgetWindow()
})
n.NewButton("Image", func() {
activeWidget.NewImage("image")