summaryrefslogtreecommitdiff
path: root/place.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-01 15:15:05 -0600
committerJeff Carr <[email protected]>2025-02-01 15:15:05 -0600
commit96fdfd13386472039dd75b0c622bb97b9987173a (patch)
treeb0d0d08c8d826efc315970bd7a32a7f2354dbddd /place.go
parent8d007ec10d8ea58d3bb1f85ec2ce2e99c3604231 (diff)
remove dumb old stuff and clean up struct.go
Diffstat (limited to 'place.go')
-rw-r--r--place.go6
1 files changed, 3 insertions, 3 deletions
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
}