summaryrefslogtreecommitdiff
path: root/cmds/buttonplugin/main.go
diff options
context:
space:
mode:
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 () {