diff options
| author | Jeff Carr <[email protected]> | 2019-05-09 23:25:55 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-09 23:25:55 -0700 |
| commit | 7d6a2aba712a85f33c26567bd2c9272560374883 (patch) | |
| tree | 0b15090da7c8c9dddc50f7adb6d97a5748de68f7 /gui.go | |
| parent | 7ec12bbfc8e4cdd097e7ddecafb285f48a41939a (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.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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()) |
