diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-28 14:00:01 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-28 14:00:01 -0400 |
| commit | bea4df1abf6f4df34016727a300e4826fc31cc05 (patch) | |
| tree | 7f481ac4a25f72a72e549e26a5d44f87891e0a84 /redo/zz_test.go | |
| parent | 3f124a016ea9d88db3c7b368b836fc296d1475e2 (diff) | |
Began final simplification of size code. spaced is now a global variable; either all controls are given spacing now, or none will. beginResize() is a method on container again. Done on GTK+ and Mac OS X for now. I'm going to go ahead and implement this on Windows in a bit, regardless of whether that Stack Overflow question get answered or not, because ugggggggggh I just want to continue working on this project for fuck's sake!
Diffstat (limited to 'redo/zz_test.go')
| -rw-r--r-- | redo/zz_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/redo/zz_test.go b/redo/zz_test.go index d282cba..5fc821e 100644 --- a/redo/zz_test.go +++ b/redo/zz_test.go @@ -11,18 +11,16 @@ import ( ) var closeOnClick = flag.Bool("close", false, "close on click") -var spaced = flag.Bool("spaced", false, "enable spacing") // 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() { done := make(chan struct{}) Do(func() { t := NewTab() w := NewWindow("Hello", 320, 240, t) - // TODO use a method here - w.(*window).spaced = *spaced w.OnClosing(func() bool { if *closeOnClick { panic("window closed normally in close on click mode (should not happen)") |
