summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-09 23:25:55 -0700
committerJeff Carr <[email protected]>2019-05-09 23:25:55 -0700
commit7d6a2aba712a85f33c26567bd2c9272560374883 (patch)
tree0b15090da7c8c9dddc50f7adb6d97a5748de68f7 /gui.go
parent7ec12bbfc8e4cdd097e7ddecafb285f48a41939a (diff)
add a generic function to add a box as a new tab
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui.go b/gui.go
index 2978958..d494c45 100644
--- a/gui.go
+++ b/gui.go
@@ -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())