From 59f2eeca22dd15daf9d7765c1709bf926d158faf Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 13 Aug 2014 09:57:22 -0400 Subject: Figured out why I'm getting intermittent crashes. Worked around for now, but will become a major issue soon... --- redo/future | 4 ++-- redo/zz_test.go | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'redo') diff --git a/redo/future b/redo/future index a4ba079..052e807 100644 --- a/redo/future +++ b/redo/future @@ -39,11 +39,11 @@ Stack, Grid method calls should trigger re-layout of windows default buttons figure out how they interact with Areas (especially on GTK+, where GtkEntry somehow has special handling for this) +in general + new moving stack and future moving heap make package ui a pain in general so I don't forget, some TODOs: windows - backgrounds are not transparent mac os x - applicationShouldTerminate: not handled -general - - changing tabs from a tab with an area seems to be broken now...?? diff --git a/redo/zz_test.go b/redo/zz_test.go index 529c43b..46f00e2 100644 --- a/redo/zz_test.go +++ b/redo/zz_test.go @@ -146,12 +146,16 @@ func (tw *testwin) make(done chan struct{}) { } } +// this must be on the heap thanks to moving stacks +// soon even this won't be enough... +var tw *testwin + // because Cocoa hates being run off the main thread, even if it's run exclusively off the main thread func init() { flag.BoolVar(&spaced, "spaced", false, "enable spacing") flag.Parse() go func() { - tw := new(testwin) + tw = new(testwin) done := make(chan struct{}) Do(func() { tw.make(done) }) <-done -- cgit v1.2.3