add a generic function to add a box as a new tab

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-09 23:25:55 -07:00
parent 7ec12bbfc8
commit 7d6a2aba71
1 changed files with 6 additions and 0 deletions

6
gui.go
View File

@ -248,6 +248,12 @@ func AddChoosersDemo() {
tabcount += 1
}
func AddNewTab(newbox ui.Control) {
maintab.Append("Cloud Info", newbox)
maintab.SetMargined(tabcount, true)
tabcount += 1
}
// This hangs on GTK
func AddEntriesDemo() {
maintab.Append("Group examples", makeGroupEntries())