don't use Data.Windows anymore
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
6ebdbf2593
commit
7da54784fb
2
debug.go
2
debug.go
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue