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, 5 insertions, 2 deletions
diff --git a/toolkit/andlabs/main.go b/toolkit/andlabs/main.go
index a72821a..20bbd8b 100644
--- a/toolkit/andlabs/main.go
+++ b/toolkit/andlabs/main.go
@@ -1,6 +1,7 @@
package main
import (
+ "embed"
"git.wit.org/wit/gui/toolkit"
"github.com/andlabs/ui"
@@ -8,6 +9,9 @@ import (
_ "github.com/andlabs/ui/winmanifest"
)
+//go:embed resources
+var res embed.FS
+
func Main(f func()) {
log(debugToolkit, "Starting gui.Main() (using gtk via andlabs/ui)")
ui.Main( func() {
@@ -33,9 +37,8 @@ func Main(f func()) {
//
func Queue(f func()) {
log(debugToolkit, "Sending function to ui.QueueMain()")
- log(true, "THIS DOES BREAK. TODO: wrap this")
+ log(true, "using gui.Queue() in this plugin DOES BREAK. TODO: wrap this")
ui.QueueMain(f)
- // f()
}
func Init() {