summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--redo/future4
-rw-r--r--redo/zz_test.go6
2 files changed, 7 insertions, 3 deletions
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