diff options
| author | Jeff Carr <[email protected]> | 2019-06-14 15:41:30 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-14 15:41:30 -0700 |
| commit | d049100b42d18ad15f1ad10a2c35481c1ccfef4c (patch) | |
| tree | 09f512fc40332275c33524693fd1eea1bc4e1391 | |
| parent | aec1711e4a5974f651f2aeb81e8365252bed26bb (diff) | |
don't use Data.Windows anymore
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | debug.go | 2 | ||||
| -rw-r--r-- | structs.go | 3 | ||||
| -rw-r--r-- | window.go | 2 |
3 files changed, 5 insertions, 2 deletions
@@ -67,6 +67,7 @@ func DumpBoxes() { } } } + /* for i, window := range Data.Windows { if (window.TabNumber == nil) { log.Println("gui.DumpBoxes() Data.Windows", i, "Name =", window.Name, "TabNumber = nil") @@ -74,6 +75,7 @@ func DumpBoxes() { log.Println("gui.DumpBoxes() Data.Windows", i, "Name =", window.Name, "TabNumber =", *window.TabNumber) } } + */ } func addTableTab() { @@ -28,9 +28,10 @@ type GuiData struct { // A map of all the entry boxes AllEntries []*GuiEntry - Windows []*GuiWindow WindowMap map[string]*GuiWindow + // Windows []*GuiWindow + // A map of all buttons everywhere on all // windows, all tabs, across all goroutines // This is "GLOBAL" @@ -100,7 +100,7 @@ func InitWindow(gw *GuiWindow, name string, axis int) *GuiBox { newGuiWindow.BoxMap = make(map[string]*GuiBox) newGuiWindow.EntryMap = make(map[string]*GuiEntry) - Data.Windows = append(Data.Windows, &newGuiWindow) + // Data.Windows = append(Data.Windows, &newGuiWindow) if (newGuiWindow.UiTab == nil) { tabnum := 0 |
