From e678a5cc626c9cfdcb2f593b49598732052495cd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 28 Jan 2024 03:33:08 -0600 Subject: fake buttons have labels Signed-off-by: Jeff Carr --- click.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'click.go') 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 -- cgit v1.2.3