From 1179bc7cf07438dd6c968f655539a58673a53e2c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 30 May 2019 09:19:58 -0700 Subject: [PATCH] more variable name fixes Signed-off-by: Jeff Carr --- example-multiple-windows/main.go | 18 +++++++++--------- test4/main.go | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/example-multiple-windows/main.go b/example-multiple-windows/main.go index 5c91188..2f90acf 100644 --- a/example-multiple-windows/main.go +++ b/example-multiple-windows/main.go @@ -13,7 +13,7 @@ import pb "git.wit.com/wit/witProtobuf" import "github.com/andlabs/ui" import _ "github.com/andlabs/ui/winmanifest" -var first *gui.WindowMap +var first *gui.GuiWindow func main() { var c *pb.Config @@ -48,11 +48,11 @@ func main() { } } -func StartNewWindow(c *pb.Config, bg bool, action string) *gui.WindowMap { +func StartNewWindow(c *pb.Config, bg bool, action string) *gui.GuiWindow { log.Println("InitNewWindow() Create a new window") - var newWindowMap *gui.WindowMap - newWindowMap = new(gui.WindowMap) - newWindowMap.C = c + var newGuiWindow *gui.GuiWindow + newGuiWindow = new(gui.GuiWindow) + newGuiWindow.C = c /* ui.OnShouldQuit(func() bool { @@ -66,19 +66,19 @@ func StartNewWindow(c *pb.Config, bg bool, action string) *gui.WindowMap { if (bg) { log.Println("ShowWindow() IN NEW GOROUTINE") go ui.Main(func() { - InitWindow(newWindowMap) + InitWindow(newGuiWindow) }) time.Sleep(2000 * time.Millisecond) } else { log.Println("ShowWindow() WAITING for ui.Main()") ui.Main(func() { - InitWindow(newWindowMap) + InitWindow(newGuiWindow) }) } - return newWindowMap + return newGuiWindow } -func InitWindow(wm *gui.WindowMap) { +func InitWindow(wm *gui.GuiWindow) { log.Println("InitWindow() NEW WINDOW wm =", wm) c := wm.C diff --git a/test4/main.go b/test4/main.go index 9a3eecd..75ecdcd 100644 --- a/test4/main.go +++ b/test4/main.go @@ -60,7 +60,7 @@ func mainMouseClick(b *gui.GuiButton) { log.Println("mainMouseClick() b.Action =", b.Account) spew.Dump(b.Account) - var wm *gui.WindowMap + var wm *gui.GuiWindow wm = b.WM if (wm == nil) {