summaryrefslogtreecommitdiff
path: root/gocui/widget.go
diff options
context:
space:
mode:
Diffstat (limited to 'gocui/widget.go')
-rw-r--r--gocui/widget.go14
1 files changed, 3 insertions, 11 deletions
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)