summaryrefslogtreecommitdiff
path: root/cmds/buttonplugin/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-12 13:00:29 -0500
committerJeff Carr <[email protected]>2023-04-12 13:00:29 -0500
commit047cde4c9d68ea4ff87006448137e836ec9eb140 (patch)
treece3332991cf5ebd7761e9021f66db787abd25536 /cmds/buttonplugin/main.go
parent982097557b2625cf04378cd7e7771122382d6de9 (diff)
better toolkit init options
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'cmds/buttonplugin/main.go')
-rw-r--r--cmds/buttonplugin/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/buttonplugin/main.go b/cmds/buttonplugin/main.go
index 3eb3b17..01ce1c8 100644
--- a/cmds/buttonplugin/main.go
+++ b/cmds/buttonplugin/main.go
@@ -18,7 +18,7 @@ func main() {
// This will turn on all debugging
// gui.SetDebug(true)
- myGui = gui.New()
+ myGui = gui.New().LoadToolkit("gocui")
buttonWindow()
// This is just a optional goroutine to watch that things are alive
@@ -55,11 +55,11 @@ func buttonWindow() {
g.NewButton("Load 'gocui'", func () {
// this set the xterm and mate-terminal window title. maybe works generally?
fmt.Println("\033]0;" + title + "blah \007")
- gui.LoadPlugin("gocui")
+ myGui.LoadToolkit("gocui")
})
g.NewButton("Load 'andlabs'", func () {
- gui.LoadPlugin("andlabs")
+ myGui.LoadToolkit("andlabs")
})
g.NewButton("NewButton(more)", func () {