diff options
| author | Jeff Carr <[email protected]> | 2025-02-19 04:22:26 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-19 17:39:45 -0600 |
| commit | a5800917e8383929e5c9dc8ad0265d6a4b4357bf (patch) | |
| tree | 3805524ee25d083ce742007e26e31cb08b449628 /debug.go | |
| parent | c64592f326aa4a76d9c773e2d4f8b775fac86b02 (diff) | |
still more
Diffstat (limited to 'debug.go')
| -rw-r--r-- | debug.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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()) } |
