diff options
Diffstat (limited to 'redo/zz_test.go')
| -rw-r--r-- | redo/zz_test.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/redo/zz_test.go b/redo/zz_test.go index 3ca54e2..99dec68 100644 --- a/redo/zz_test.go +++ b/redo/zz_test.go @@ -16,7 +16,6 @@ import ( var closeOnClick = flag.Bool("close", false, "close on click") var smallWindow = flag.Bool("small", false, "open a small window (test Mac OS X initial control sizing)") -var defocuses = flag.Bool("defocuses", false, "if the Area in the small window (see -small) should defocus") type dtype struct { Name string @@ -48,7 +47,7 @@ type testwin struct { wsmall Window } -type areaHandler struct{defocuses bool} +type areaHandler struct{} func (a *areaHandler) Paint(r image.Rectangle) *image.RGBA { i := image.NewRGBA(r) draw.Draw(i, r, &image.Uniform{color.RGBA{128,0,128,255}}, image.ZP, draw.Src) @@ -56,7 +55,6 @@ func (a *areaHandler) Paint(r image.Rectangle) *image.RGBA { } func (a *areaHandler) Mouse(me MouseEvent) { fmt.Printf("%#v\n", me) } func (a *areaHandler) Key(ke KeyEvent) { fmt.Printf("%#v %q\n", ke, ke.Key) } -func (a *areaHandler) Defocuses() bool { return a.defocuses } func (tw *testwin) make(done chan struct{}) { tw.t = NewTab() @@ -137,13 +135,11 @@ func (tw *testwin) make(done chan struct{}) { tw.t.Append("Password Field", tw.e2) tw.w.Show() if *smallWindow { - // TODO windows - tab order wrong in wine? tw.wsmall = NewWindow("Small", 80, 80, NewVerticalStack( NewButton("Small"), NewButton("Small"), - NewTextField(), - NewArea(200, 200, &areaHandler{*defocuses}))) + NewArea(200, 200, &areaHandler{}))) tw.wsmall.Show() } } |
