summaryrefslogtreecommitdiff
path: root/debugWidget.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-03 10:26:47 -0500
committerJeff Carr <[email protected]>2023-04-03 10:26:47 -0500
commit4b6207743b90968d6b822032a4355e43b6ce6da9 (patch)
tree2cb9f13d5e95f14e165f8e41e8484320b7454177 /debugWidget.go
parent0320ebe4bb49ea80761d77af80fa208157ffdb89 (diff)
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 <[email protected]>
Diffstat (limited to 'debugWidget.go')
-rw-r--r--debugWidget.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/debugWidget.go b/debugWidget.go
index afe4302..cd712f4 100644
--- a/debugWidget.go
+++ b/debugWidget.go
@@ -43,7 +43,7 @@ func setActiveWidget(w *Node) {
// TODO: make a fake binary tree for this(?)
return
}
- title := "ID =" + strconv.Itoa(w.id) + " " + w.widget.Name
+ title := "ID =" + strconv.Itoa(w.id) + " " + w.Name
activeLabel.SetText(title)
activeLabelType.SetText("widget.Type = " + w.widget.Type.String())
return
@@ -180,7 +180,7 @@ func (n *Node) debugAddWidgetButtons() {
a.AddText("make something for tim for qflow")
a.AddText("and for riscv")
a.Custom = func () {
- log("custom dropdown() a =", a.widget.Name, a.widget.S, "id=", a.id)
+ log("custom dropdown() a =", a.Name, a.widget.S, "id=", a.id)
}
})
n.NewButton("Combobox", func () {
@@ -188,7 +188,7 @@ func (n *Node) debugAddWidgetButtons() {
a.AddText("mirrors.wit.com")
a.AddText("go.wit.com")
a.Custom = func () {
- log("custom combobox() a =", a.widget.Name, a.widget.S, "id=", a.id)
+ log("custom combobox() a =", a.Name, a.widget.S, "id=", a.id)
}
})
n.NewButton("Grid", func () {