diff options
| author | Jeff Carr <[email protected]> | 2024-01-17 23:39:03 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-17 23:39:03 -0600 |
| commit | a0baba0821441d9cf38f0b33fe12fb96925c6236 (patch) | |
| tree | 2aece2a890c66c36b08524e117753817078ee58c /gocui/debug.go | |
| parent | bee272651ad38453aef27f098513f7be652c39bf (diff) | |
new paths
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gocui/debug.go')
| -rw-r--r-- | gocui/debug.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gocui/debug.go b/gocui/debug.go index fe51943..ee58727 100644 --- a/gocui/debug.go +++ b/gocui/debug.go @@ -2,13 +2,13 @@ package main import ( "fmt" + "go.wit.com/lib/widget" "go.wit.com/log" - "go.wit.com/gui/widget" ) func (n *node) dumpTree(draw bool) { w := n.tk - if (w == nil) { + if w == nil { return } n.showWidgetPlacement(true, "dumpTree()") @@ -19,7 +19,7 @@ func (n *node) dumpTree(draw bool) { } func (n *node) showWidgetPlacement(b bool, s string) { - if (n == nil) { + if n == nil { log.Log(ERROR, "WTF w == nil") return } @@ -27,7 +27,7 @@ func (n *node) showWidgetPlacement(b bool, s string) { var s1 string var pId int - if (n.parent == nil) { + if n.parent == nil { log.Log(INFO, "showWidgetPlacement() parent == nil", n.WidgetId, w.cuiName) pId = 0 } else { @@ -41,8 +41,8 @@ func (n *node) showWidgetPlacement(b bool, s string) { } else { s1 += fmt.Sprintf(" ") } - if (n.parent != nil) { - if (n.parent.WidgetType == widget.Grid) { + if n.parent != nil { + if n.parent.WidgetType == widget.Grid { s1 += fmt.Sprintf("At(%2d,%2d) ", n.AtW, n.AtH) } } @@ -55,7 +55,7 @@ func (n *node) dumpWidget(pad string) { } func (n *node) listWidgets() { - if (n == nil) { + if n == nil { return } |
