From 23f6a07c7f82f9107554c5a5e228d3364652ef3e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 18 Feb 2014 10:53:15 -0500 Subject: Buffered the event channels, as per skelterjohn's suggestion; I thought this would fix the faults I now get, but it doesn't... --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index fb79bfb..10add2d 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,7 @@ import ( func main() { w := NewWindow("Main Window", 320, 240) - w.Closing = make(chan struct{}) + w.Closing = Event() b := NewButton("Click Me") b2 := NewButton("Or Me") s2 := NewStack(Horizontal, b, b2) -- cgit v1.2.3