Try to dynamically add the other tabs. Doesn't always work.
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
3fa08bed15
commit
9f604f720b
15
gui.go
15
gui.go
|
@ -228,6 +228,7 @@ func setupUI() {
|
||||||
tabcount = 0
|
tabcount = 0
|
||||||
maintab.SetMargined(tabcount, true)
|
maintab.SetMargined(tabcount, true)
|
||||||
|
|
||||||
|
/*
|
||||||
maintab.Append("Choosers examples", makeDataChoosersPage())
|
maintab.Append("Choosers examples", makeDataChoosersPage())
|
||||||
tabcount += 1
|
tabcount += 1
|
||||||
maintab.SetMargined(tabcount, true)
|
maintab.SetMargined(tabcount, true)
|
||||||
|
@ -235,10 +236,24 @@ func setupUI() {
|
||||||
maintab.Append("Group examples", makeGroupEntries())
|
maintab.Append("Group examples", makeGroupEntries())
|
||||||
tabcount += 1
|
tabcount += 1
|
||||||
maintab.SetMargined(tabcount, true)
|
maintab.SetMargined(tabcount, true)
|
||||||
|
*/
|
||||||
|
|
||||||
mainwin.Show()
|
mainwin.Show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func AddChoosersDemo() {
|
||||||
|
maintab.Append("Choosers examples", makeDataChoosersPage())
|
||||||
|
tabcount += 1
|
||||||
|
maintab.SetMargined(tabcount, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
// This hangs on GTK
|
||||||
|
func AddEntriesDemo() {
|
||||||
|
maintab.Append("Group examples", makeGroupEntries())
|
||||||
|
tabcount += 1
|
||||||
|
maintab.SetMargined(tabcount, true)
|
||||||
|
}
|
||||||
|
|
||||||
func AddTableTab(name string, rowcount int, row1name string) {
|
func AddTableTab(name string, rowcount int, row1name string) {
|
||||||
mh := new(tableData)
|
mh := new(tableData)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue