From 2107a4876ece2d2c19d85bc813007515618d2441 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 8 May 2019 14:03:10 -0700 Subject: [PATCH] Try to dynamically add some of the other tabs Signed-off-by: Jeff Carr --- main.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/main.go b/main.go index e92d08f..f5c338a 100644 --- a/main.go +++ b/main.go @@ -64,6 +64,21 @@ func main() { go gui.DoGUI() + // + // NOTE: This needs to be something long like 2 seconds. + // Not sure way. Otherwise it will hang GTK + // + log.Println("Sleep for 2 seconds, then try to add new tabs") + time.Sleep(2 * 1000 * 1000 * 1000) + gui.AddChoosersDemo() + + /* + // THIS CRASHES FOR SOME REASON + log.Println("Sleep for 10 seconds, then try to add new tabs") + time.Sleep(10 * 1000 * 1000 * 1000) + gui.AddEntriesDemo() + */ + log.Println("Sleep for 2 seconds, then try to add new tabs") time.Sleep(2 * 1000 * 1000 * 1000)