summaryrefslogtreecommitdiff
path: root/widget.go
diff options
context:
space:
mode:
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")