diff options
| author | Jeff Carr <[email protected]> | 2023-12-16 06:57:39 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-16 06:57:39 -0600 |
| commit | 87ab9a958d9eb9f4db35d5c9f9ce923df3132dad (patch) | |
| tree | fd3ee29d828e9e69175a6ca04fec6ae0fe60fcc0 /toolkit/andlabs/main.go | |
| parent | dcce32583387be7fc4f6cd8c8dea62fd7dc42ecf (diff) | |
correct line hight
dump non-working size rectangle code
somehow works better
better dropdown menu debugging
minor fixes to common.go
more common code
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/main.go')
| -rw-r--r-- | toolkit/andlabs/main.go | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/toolkit/andlabs/main.go b/toolkit/andlabs/main.go index 4737337..e2d34a3 100644 --- a/toolkit/andlabs/main.go +++ b/toolkit/andlabs/main.go @@ -9,12 +9,6 @@ import ( _ "github.com/andlabs/ui/winmanifest" ) -// this is the channel we get requests to make widgets -var pluginChan chan toolkit.Action - -// the starting point of the binary tree -// var rootNode *node - var uiMainUndef bool = true var uiMain sync.Once var muAction sync.Mutex @@ -30,7 +24,7 @@ func catchActionChannel() { muAction.Lock() // TODO ui.QueueMain(f) // TODO ui.QueueMain( func() {rawAction(a)} ) - ui.QueueMain( func() {rawAction(a)} ) + ui.QueueMain( func() {rawAction(&a)} ) // rawAction(a) muAction.Unlock() log(logInfo, "catchActionChannel() STUFF END", a.WidgetId, a.ActionType, a.WidgetType) @@ -38,21 +32,6 @@ func catchActionChannel() { } } -// 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.) -// -// this sets the channel to send user events back from the plugin -func Callback(guiCallback chan toolkit.Action) { - callback = guiCallback -} - -func PluginChannel() chan toolkit.Action { - return pluginChan -} - // This is important. This sets the defaults for the gui. Without this, there isn't correct padding, etc func init() { log(logNow, "Init() START") |
