summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/debug.go b/debug.go
index 189ef31..84630f5 100644
--- a/debug.go
+++ b/debug.go
@@ -69,10 +69,10 @@ func (tk *guiWidget) dumpWidget(s string) {
s1 += fmt.Sprintf(" %3s %3s %3s %3s ", "", "", "", "")
}
s1 += fmt.Sprintf(" full=(%3d,%3d,%3d,%3d)", tk.full.w0, tk.full.h0, tk.full.w1, tk.full.h1)
- if tk.node.Parent != nil {
- if tk.node.Parent.WidgetType == widget.Grid {
- s1 += fmt.Sprintf("At(%3d,%3d)", tk.node.State.AtW, tk.node.State.AtH)
- s1 += fmt.Sprintf("(%3d,%3d) ", tk.parent.widths[tk.node.State.AtW], tk.parent.heights[tk.node.State.AtH])
+ if tk.parent != nil {
+ if tk.parent.WidgetType() == widget.Grid {
+ s1 += fmt.Sprintf("At(%3d,%3d)", tk.GridW(), tk.GridH())
+ s1 += fmt.Sprintf("(%3d,%3d) ", tk.parent.widths[tk.GridW()], tk.parent.heights[tk.GridH()])
} else {
s1 += fmt.Sprintf(" %3s %3s ", "", "")
s1 += fmt.Sprintf(" %3s %3s ", "", "")
@@ -82,7 +82,7 @@ func (tk *guiWidget) dumpWidget(s string) {
}
var end string
if tk.WidgetType() == widget.Box {
- end = fmt.Sprintf("%-8s %-8s %s %s", tk.WidgetType(), tk.cuiName, tk.node.State.Direction.String(), tk.String())
+ end = fmt.Sprintf("%-8s %-8s %s %s", tk.WidgetType(), tk.cuiName, tk.Direction().String(), tk.String())
} else {
end = fmt.Sprintf("%-8s %-8s %s", tk.WidgetType(), tk.cuiName, tk.String())
}