old single channel function deprecated

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-05 09:13:17 -06:00
parent e317478e6a
commit 75e7070077
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@ func init() {
me.myTree = tree.New()
me.myTree.PluginName = "gocui"
me.myTree.ActionFromChannel = action
// me.myTree.ActionFromChannel = action
me.myTree.NodeAction = newaction
me.myTree.Add = newAdd
me.myTree.SetTitle = newSetTitle

View File

@ -119,7 +119,8 @@ func newaction(n *tree.Node, atype widget.ActionType) {
}
func action(a widget.Action) {
log.Log(INFO, "action() START", a.WidgetId, a.ActionType, a.WidgetType, a.ProgName)
log.Log(INFO, "action() IGNORE", a.WidgetId, a.ActionType, a.WidgetType, a.ProgName)
return
// n := me.rootNode.findWidgetId(a.WidgetId)
n := me.treeRoot.FindWidgetId(a.WidgetId)
var w *guiWidget