diff options
| author | Jeff Carr <[email protected]> | 2025-02-01 15:15:05 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-01 15:15:05 -0600 |
| commit | 96fdfd13386472039dd75b0c622bb97b9987173a (patch) | |
| tree | b0d0d08c8d826efc315970bd7a32a7f2354dbddd /place.go | |
| parent | 8d007ec10d8ea58d3bb1f85ec2ce2e99c3604231 (diff) | |
remove dumb old stuff and clean up struct.go
Diffstat (limited to 'place.go')
| -rw-r--r-- | place.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } |
