don't use Data.Windows anymore

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-14 15:41:30 -07:00
parent 6ebdbf2593
commit 7da54784fb
3 changed files with 5 additions and 2 deletions

View File

@ -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() {

View File

@ -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"

View File

@ -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