summaryrefslogtreecommitdiff
path: root/toolkit/andlabs/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/andlabs/main.go')
-rw-r--r--toolkit/andlabs/main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/toolkit/andlabs/main.go b/toolkit/andlabs/main.go
index 1ad7a60..9ca71ca 100644
--- a/toolkit/andlabs/main.go
+++ b/toolkit/andlabs/main.go
@@ -2,7 +2,7 @@ package main
import (
"embed"
- // "git.wit.org/wit/gui/toolkit"
+ "git.wit.org/wit/gui/toolkit"
"github.com/andlabs/ui"
// the _ means we only need this for the init()
@@ -22,6 +22,11 @@ func Main(f func()) {
})
}
+// this sets the channel to send user events back from the plugin
+func Callback(guiCallback chan toolkit.Action) {
+ callback = guiCallback
+}
+
// Other goroutines must use this to access the GUI
//
// You can not acess / process the GUI thread directly from