From 7bb10dfb029313a9d1694a68fef2beca10ce858b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 24 Apr 2023 14:17:43 -0500 Subject: gocui: try to make struct defaults work Signed-off-by: Jeff Carr --- toolkit/gocui/common.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'toolkit/gocui/common.go') diff --git a/toolkit/gocui/common.go b/toolkit/gocui/common.go index e348ab1..1b0d61f 100644 --- a/toolkit/gocui/common.go +++ b/toolkit/gocui/common.go @@ -30,6 +30,8 @@ func makeWidget(a *toolkit.Action) *cuiWidget { w.id = a.WidgetId // set the name used by gocui to the id w.cuiName = strconv.Itoa(w.id) + // set the gocui view.Frame = true by default + w.frame = true if w.widgetType == toolkit.Root { log(logInfo, "setupWidget() FOUND ROOT w.id =", w.id, "w.parent", w.parent, "ParentId =", a.ParentId) -- cgit v1.2.3