summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-18 10:53:15 -0500
committerPietro Gagliardi <[email protected]>2014-02-18 10:53:15 -0500
commit23f6a07c7f82f9107554c5a5e228d3364652ef3e (patch)
tree47a3e52349613d47fd461b59e69916f9ee2f7b12 /main.go
parent1f08c874e0c9df9019e994098e1d006a7011e533 (diff)
Buffered the event channels, as per skelterjohn's suggestion; I thought this would fix the faults I now get, but it doesn't...
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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)