summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-06 18:26:30 -0500
committerJeff Carr <[email protected]>2023-04-06 18:26:30 -0500
commit9ce7f345f1a704516b298b495f8eefd3eaa37708 (patch)
treeb62bbdd662a628b57bc2f4b7c200f41c020f8334 /button.go
parentbf60121b6515681ac505e80cb6824ba6bd978c29 (diff)
gocui: debug flag buttons work
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'button.go')
-rw-r--r--button.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/button.go b/button.go
index 8820734..c506e36 100644
--- a/button.go
+++ b/button.go
@@ -9,12 +9,14 @@ func (n *Node) NewButton(name string, custom func()) *Node {
a.Name = name
a.Text = name
a.ActionType = toolkit.Add
+ // deprecate this once andlabs is refactored
a.Callback = callback
newaction(&a, newNode, n)
return newNode
}
+// deprecate this once andlabs is refactored
func callback(i int) bool {
log(debugError, "callback() for widget id =", i)
n := Config.rootNode.FindId(i)