diff options
| author | Jeff Carr <[email protected]> | 2023-04-06 18:26:30 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-06 18:26:30 -0500 |
| commit | 9ce7f345f1a704516b298b495f8eefd3eaa37708 (patch) | |
| tree | b62bbdd662a628b57bc2f4b7c200f41c020f8334 /button.go | |
| parent | bf60121b6515681ac505e80cb6824ba6bd978c29 (diff) | |
gocui: debug flag buttons work
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'button.go')
| -rw-r--r-- | button.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |
