diff options
| author | Jeff Carr <[email protected]> | 2023-04-08 00:28:33 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-08 00:28:33 -0500 |
| commit | 55b5aed5c4837c8de131925966b328f43bb03b61 (patch) | |
| tree | e66bd66d675d352c4efa3ce0fcbfa818527e9c8d /main.go | |
| parent | 56b4aa8014baa8205459545dc27a173cbbcbee16 (diff) | |
both andlabs & gocui plugins have working channels
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 27 |
1 files changed, 2 insertions, 25 deletions
@@ -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) |
