diff options
| author | Jeff Carr <[email protected]> | 2019-06-02 15:49:52 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-02 15:49:52 -0700 |
| commit | 8967c1494c9611330782915dbf4d54f29887d135 (patch) | |
| tree | 93fb34b5c3ce73567172dc55ee273da977e9aa03 /gui.go | |
| parent | d6cc47ab94bf294b69116f9479b49f0302bfc7b5 (diff) | |
more deletions of old stuff
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -8,8 +8,6 @@ import "regexp" import "github.com/andlabs/ui" import _ "github.com/andlabs/ui/winmanifest" -import pb "git.wit.com/wit/witProtobuf" - // import "github.com/davecgh/go-spew/spew" const Xaxis = 0 @@ -24,11 +22,11 @@ func GuiInit() { } // func InitGuiWindow(c *pb.Config, action string, maketab func(*GuiWindow) *GuiBox, uiW *ui.Window, uiT *ui.Tab) *GuiWindow { -func InitGuiWindow(c *pb.Config, action string, gw *GuiWindow) *GuiWindow { +func InitGuiWindow(action string, gw *GuiWindow) *GuiWindow { log.Println("InitGuiWindow() START") var newGuiWindow GuiWindow - newGuiWindow.Width = int(c.Width) - newGuiWindow.Height = int(c.Height) + newGuiWindow.Width = Config.Width + newGuiWindow.Height = Config.Height newGuiWindow.Action = action newGuiWindow.MakeWindow = gw.MakeWindow newGuiWindow.UiWindow = gw.UiWindow @@ -43,11 +41,11 @@ func InitGuiWindow(c *pb.Config, action string, gw *GuiWindow) *GuiWindow { } -func StartNewWindow(c *pb.Config, bg bool, action string, callback func(*GuiWindow) *GuiBox) { +func StartNewWindow(bg bool, action string, callback func(*GuiWindow) *GuiBox) { log.Println("StartNewWindow() Create a new window") var junk GuiWindow junk.MakeWindow = callback - window := InitGuiWindow(c, action, &junk) + window := InitGuiWindow(action, &junk) if (bg) { log.Println("StartNewWindow() START NEW GOROUTINE for ui.Main()") go ui.Main(func() { |
