more stable than before
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
7d6a2aba71
commit
dbe88483da
14
gui.go
14
gui.go
|
@ -248,10 +248,9 @@ func AddChoosersDemo() {
|
||||||
tabcount += 1
|
tabcount += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
func AddNewTab(newbox ui.Control) {
|
func AddNewTab(mytab *ui.Tab, newbox ui.Control, tabOffset int) {
|
||||||
maintab.Append("Cloud Info", newbox)
|
mytab.Append("Cloud Info", newbox)
|
||||||
maintab.SetMargined(tabcount, true)
|
mytab.SetMargined(tabOffset, true)
|
||||||
tabcount += 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This hangs on GTK
|
// This hangs on GTK
|
||||||
|
@ -305,7 +304,7 @@ type InputData struct {
|
||||||
Color string
|
Color string
|
||||||
}
|
}
|
||||||
|
|
||||||
func AddTableTab(name string, rowcount int, parts []InputData) {
|
func AddTableTab(mytab *ui.Tab, mytabcount int, name string, rowcount int, parts []InputData) {
|
||||||
mh := new(tableData)
|
mh := new(tableData)
|
||||||
|
|
||||||
mh.rowcount = rowcount
|
mh.rowcount = rowcount
|
||||||
|
@ -354,9 +353,8 @@ func AddTableTab(name string, rowcount int, parts []InputData) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
maintab.Append(name, table)
|
mytab.Append(name, table)
|
||||||
maintab.SetMargined(tabcount, true)
|
mytab.SetMargined(mytabcount, true)
|
||||||
tabcount += 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func DoGUI() {
|
func DoGUI() {
|
||||||
|
|
Loading…
Reference in New Issue