summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-08 00:28:33 -0500
committerJeff Carr <[email protected]>2023-04-08 00:28:33 -0500
commit55b5aed5c4837c8de131925966b328f43bb03b61 (patch)
treee66bd66d675d352c4efa3ce0fcbfa818527e9c8d /main.go
parent56b4aa8014baa8205459545dc27a173cbbcbee16 (diff)
both andlabs & gocui plugins have working channels
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go27
1 files changed, 2 insertions, 25 deletions
diff --git a/main.go b/main.go
index db9664d..135486e 100644
--- a/main.go
+++ b/main.go
@@ -203,7 +203,8 @@ func Main(f func()) {
if (os.Getenv("DISPLAY") == "") {
InitPlugins([]string{"gocui"})
} else {
- InitPlugins([]string{"gocui", "andlabs"})
+ InitPlugins([]string{"andlabs", "gocui"})
+ // InitPlugins([]string{"gocui", "andlabs"})
}
for _, aplug := range allPlugins {
@@ -238,30 +239,6 @@ func Main(f func()) {
}
-/*
-This is deprecated and will be implemented more correctly with waitgroups
-
-// This should never be exposed(?)
-
-// Other goroutines must use this to access the GUI
-//
-// You can not acess / process the GUI thread directly from
-// other goroutines. This is due to the nature of how
-// Linux, MacOS and Windows work (they all work differently. suprise. surprise.)
-// For example: gui.Queue(NewWindow())
-func Queue(f func()) {
- log(debugGui, "Sending function to gui.Main() (using gtk via andlabs/ui)")
- // toolkit.Queue(f)
- for _, aplug := range allPlugins {
- log(debugGui, "NewButton() toolkit plugin =", aplug.name)
- if (aplug.Queue == nil) {
- continue
- }
- aplug.Queue(f)
- }
-}
-*/
-
// The window is destroyed but the application does not quit
func (n *Node) StandardClose() {
log(debugGui, "wit/gui Standard Window Close. name =", n.Name)