From 7d6a2aba712a85f33c26567bd2c9272560374883 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 9 May 2019 23:25:55 -0700 Subject: [PATCH] add a generic function to add a box as a new tab Signed-off-by: Jeff Carr --- gui.go | 6 ++++++ 1 file changed, 6 insertions(+) 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())