summaryrefslogtreecommitdiff
path: root/click.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-28 03:33:08 -0600
committerJeff Carr <[email protected]>2024-01-28 03:33:08 -0600
commite678a5cc626c9cfdcb2f593b49598732052495cd (patch)
tree56361aa3408154f325a4f21f5e1f21b15f361251 /click.go
parent1f3d664dbdee1b567f5b40e06c63c07c4667d5f4 (diff)
fake buttons have labels
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'click.go')
-rw-r--r--click.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/click.go b/click.go
index 53c4abf..3195085 100644
--- a/click.go
+++ b/click.go
@@ -242,7 +242,7 @@ func doWidgetClick(n *tree.Node) {
}
me.ddNode = n
log.Log(NOW, "new dns list should be set to:", dnsList)
- tk.label = dnsList
+ tk.labelN = dnsList
tk.SetText(dnsList)
SetVisible(me.ddview, true)
}
@@ -297,7 +297,7 @@ func click(g *gocui.Gui, v *gocui.View) error {
var w *guiWidget
w = n.TK.(*guiWidget)
if n != nil {
- log.Log(NOW, "click() Found widget =", n.WidgetId, n.String(), ",", w.label)
+ log.Log(NOW, "click() Found widget =", n.WidgetId, n.String(), ",", w.labelN)
if n.String() == "DropBox" {
log.Log(NOW, "click() this is the dropdown menu. set a flag here what did I click? where is the mouse?")
log.Log(NOW, "click() set a global dropdown clicked flag=true here")
@@ -372,7 +372,7 @@ func ctrlDown(g *gocui.Gui, v *gocui.View) error {
var tk *guiWidget
tk = me.ctrlDown.TK.(*guiWidget)
- tk.label = found.String()
+ tk.labelN = found.String()
tk.cuiName = "ctrlDown"
// me.ctrlDown.parent = me.rootNode
}
@@ -381,7 +381,7 @@ func ctrlDown(g *gocui.Gui, v *gocui.View) error {
if found == nil {
found = me.treeRoot
}
- tk.label = found.String()
+ tk.labelN = found.String()
newR := realGocuiSize(found)
tk.gocuiSize.w0 = newR.w0
tk.gocuiSize.h0 = newR.h0