From 047cde4c9d68ea4ff87006448137e836ec9eb140 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 12 Apr 2023 13:00:29 -0500 Subject: better toolkit init options Signed-off-by: Jeff Carr --- cmds/buttonplugin/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmds/buttonplugin/main.go') 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 () { -- cgit v1.2.3