old single channel function deprecated
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
e317478e6a
commit
75e7070077
2
main.go
2
main.go
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue