From 4b6207743b90968d6b822032a4355e43b6ce6da9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 3 Apr 2023 10:26:47 -0500 Subject: gocui: working towards correct layout make a gocui widget binary tree more debugging cleanups sample button app displays in gocui geometry logic closer to correct improvements in gocui layout continued attempts to clean up tabs dump binary tree moving towards proper chan callback() deprecate Widget.Name Signed-off-by: Jeff Carr --- toolkit/andlabs/add.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toolkit/andlabs/add.go') diff --git a/toolkit/andlabs/add.go b/toolkit/andlabs/add.go index b03ee9c..2a1b677 100644 --- a/toolkit/andlabs/add.go +++ b/toolkit/andlabs/add.go @@ -121,7 +121,7 @@ func place(a *toolkit.Action, t *andlabsT, newt *andlabsT) bool { if (andlabs[a.WidgetId] == nil) { log(logInfo, "newTab() MAPPED", a.WidgetId, a.ParentId) andlabs[a.WidgetId] = newt - newt.Type = a.WidgetType + newt.WidgetType = a.WidgetType } else { log(debugError, "newTab() DO WHAT?", a.WidgetId, a.ParentId) log(debugError, "THIS IS BAD") @@ -138,7 +138,7 @@ func place(a *toolkit.Action, t *andlabsT, newt *andlabsT) bool { return false } - switch where.Type { + switch where.WidgetType { case toolkit.Grid: log(debugGrid, "add() Grid try at Parent X,Y =", a.X, a.Y) newt.gridX = a.X -- cgit v1.2.3