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... --- button.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'button.go') diff --git a/button.go b/button.go index d1b286c..39c2da1 100644 --- a/button.go +++ b/button.go @@ -21,7 +21,7 @@ func NewButton(text string) (b *Button) { return &Button{ sysData: mksysdata(c_button), initText: text, - Clicked: make(chan struct{}), + Clicked: Event(), } } -- cgit v1.2.3