summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.go b/main.go
index 60760d0..2fb1b91 100644
--- a/main.go
+++ b/main.go
@@ -14,6 +14,14 @@ import (
"go.wit.com/toolkits/tree"
)
+func queueToolkitClose() {
+ me.baseGui.Close()
+}
+
+func queueSetChecked(n *tree.Node, b bool) {
+ setChecked(n, b)
+}
+
// sets defaults and establishes communication
// to this toolkit from the wit/gui golang package
func init() {
@@ -33,6 +41,8 @@ func init() {
me.myTree.SetLabel = newSetLabel
me.myTree.SetText = newSetText
me.myTree.AddText = newAddText
+ me.myTree.SetChecked = queueSetChecked
+ me.myTree.ToolkitClose = queueToolkitClose
log.Log(NOW, "Init() start pluginChan")
log.Sleep(.1) // probably not needed, but in here for now under development