summaryrefslogtreecommitdiff
path: root/toolkit/gocui/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-24 14:17:43 -0500
committerJeff Carr <[email protected]>2023-04-24 14:17:43 -0500
commit7bb10dfb029313a9d1694a68fef2beca10ce858b (patch)
tree60675838284639cfae3255935ac789a463ae4ec9 /toolkit/gocui/common.go
parentcd998e95c1bae4e5e31ef9dced6d8f3c0095d46e (diff)
gocui: try to make struct defaults work
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/common.go')
-rw-r--r--toolkit/gocui/common.go2
1 files changed, 2 insertions, 0 deletions
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)