test to make a frozen channel
This commit is contained in:
parent
547e67042d
commit
be696b98aa
1
init.go
1
init.go
|
@ -47,6 +47,7 @@ func (me *TreeInfo) catchActionChannel() {
|
||||||
func New() *TreeInfo {
|
func New() *TreeInfo {
|
||||||
me := new(TreeInfo)
|
me := new(TreeInfo)
|
||||||
me.pluginChan = make(chan widget.Action, 1)
|
me.pluginChan = make(chan widget.Action, 1)
|
||||||
|
me.frozenChan = make(chan widget.Action, 1)
|
||||||
me.config = configLoad()
|
me.config = configLoad()
|
||||||
|
|
||||||
log.Log(TREE, "Init() start channel reciever")
|
log.Log(TREE, "Init() start channel reciever")
|
||||||
|
|
|
@ -77,3 +77,8 @@ func (me *TreeInfo) PluginChannel() chan widget.Action {
|
||||||
me.WaitOK()
|
me.WaitOK()
|
||||||
return me.pluginChan
|
return me.pluginChan
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this is the function that receives things from the application
|
||||||
|
func (me *TreeInfo) FrozenChannel() chan widget.Action {
|
||||||
|
return me.frozenChan
|
||||||
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ type TreeInfo struct {
|
||||||
config *ToolkitConfigs // protobuf of plugin settings
|
config *ToolkitConfigs // protobuf of plugin settings
|
||||||
callback chan widget.Action // mouse clicks or keyboard events back to the program
|
callback chan widget.Action // mouse clicks or keyboard events back to the program
|
||||||
pluginChan chan widget.Action // this is the channel we get requests to make widgets
|
pluginChan chan widget.Action // this is the channel we get requests to make widgets
|
||||||
|
frozenChan chan widget.Action // expirement to get fyne to work
|
||||||
Add func(*Node) // add a new widget
|
Add func(*Node) // add a new widget
|
||||||
AddText func(*Node, string) // add a string to a dropdown widget
|
AddText func(*Node, string) // add a string to a dropdown widget
|
||||||
SetText func(*Node, string) // set the text of a widget
|
SetText func(*Node, string) // set the text of a widget
|
||||||
|
|
Loading…
Reference in New Issue