From d874148760328786c9d12f871a27b97be0774a6d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 7 Jul 2014 22:46:23 -0400 Subject: Fixed most compilation errors and added GTK+ string helper functions to common_unix.go. --- redo/controls.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'redo/controls.go') diff --git a/redo/controls.go b/redo/controls.go index bc4f823..b40256a 100644 --- a/redo/controls.go +++ b/redo/controls.go @@ -32,6 +32,7 @@ func NewButton(text string) *Request { // Example: // b := ui.GetNewButton(ui.Do, "OK") func GetNewButton(c Doer, text string) Button { - c <- newButton(text) - return (<-c.resp).(Button) + req := newButton(text) + c <- req + return (<-req.resp).(Button) } -- cgit v1.2.3