From 3b258d0ce0e20ffedf8804409a16abbe84f1d383 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 11 Jan 2024 19:10:24 -0600 Subject: var value any Signed-off-by: Jeff Carr --- gocui/widget.go | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'gocui/widget.go') diff --git a/gocui/widget.go b/gocui/widget.go index bfaa950..fba66dd 100644 --- a/gocui/widget.go +++ b/gocui/widget.go @@ -24,14 +24,6 @@ func initWidget(n *node) *guiWidget { return w } - if (n.WidgetType == widget.Box) { - if (n.B) { - n.horizontal = true - } else { - n.horizontal = false - } - } - if (n.WidgetType == widget.Grid) { w.widths = make(map[int]int) // how tall each row in the grid is w.heights = make(map[int]int) // how wide each column in the grid is @@ -42,7 +34,7 @@ func initWidget(n *node) *guiWidget { func setupCtrlDownWidget() { a := new(widget.Action) - a.Name = "ctrlDown" + a.ProgName = "ctrlDown" a.WidgetType = widget.Dialog a.WidgetId = -1 a.ParentId = 0 @@ -128,8 +120,8 @@ func addDropdown() *node { n.ParentId = 0 // copy the data from the action message - n.Name = "DropBox" - n.Text = "DropBox text" + n.progname = "DropBox" + n.tk.label = "DropBox text" // store the internal toolkit information n.tk = new(guiWidget) -- cgit v1.2.3