summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-08 14:01:57 -0700
committerJeff Carr <[email protected]>2019-05-08 14:01:57 -0700
commit9f604f720b6deb66ca595e5895e2d1889fa86f66 (patch)
treebcc18d5bdf1cbef1aec7e28578da095e1fcb23aa /gui.go
parent3fa08bed151d174e3cf699abd7e39e8709a8d4e1 (diff)
Try to dynamically add the other tabs. Doesn't always work.
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/gui.go b/gui.go
index 816464b..eeeef92 100644
--- a/gui.go
+++ b/gui.go
@@ -228,6 +228,7 @@ func setupUI() {
tabcount = 0
maintab.SetMargined(tabcount, true)
+/*
maintab.Append("Choosers examples", makeDataChoosersPage())
tabcount += 1
maintab.SetMargined(tabcount, true)
@@ -235,10 +236,24 @@ func setupUI() {
maintab.Append("Group examples", makeGroupEntries())
tabcount += 1
maintab.SetMargined(tabcount, true)
+*/
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) {
mh := new(tableData)