From 96fdfd13386472039dd75b0c622bb97b9987173a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 1 Feb 2025 15:15:05 -0600 Subject: remove dumb old stuff and clean up struct.go --- place.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'place.go') diff --git a/place.go b/place.go index 0dd7568..35b045a 100644 --- a/place.go +++ b/place.go @@ -35,7 +35,7 @@ func (tk *guiWidget) Position() (int, int) { } func (w *guiWidget) placeBox(startW int, startH int) { - if w.WidgetType != widget.Box { + if w.node.WidgetType != widget.Box { return } @@ -73,7 +73,7 @@ func (tk *guiWidget) placeWidgets(startW int, startH int) (int, int) { tk.startW = startW tk.startH = startH - switch tk.WidgetType { + switch tk.node.WidgetType { case widget.Window: newW := startW newH := startH @@ -128,7 +128,7 @@ func (tk *guiWidget) placeWidgets(startW int, startH int) (int, int) { func (w *guiWidget) placeGrid(startW int, startH int) (int, int) { // w.showWidgetPlacement("grid0:") - if w.WidgetType != widget.Grid { + if w.node.WidgetType != widget.Grid { return 0, 0 } -- cgit v1.2.3