diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-07 22:46:23 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-07 22:46:23 -0400 |
| commit | d874148760328786c9d12f871a27b97be0774a6d (patch) | |
| tree | 0ab7bc04bcf57e47bcb34209b8b731ec81039cc0 /redo/controls.go | |
| parent | dccf548ffa64702bc058d7d8288127212b8bdce0 (diff) | |
Fixed most compilation errors and added GTK+ string helper functions to common_unix.go.
Diffstat (limited to 'redo/controls.go')
| -rw-r--r-- | redo/controls.go | 5 |
1 files changed, 3 insertions, 2 deletions
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) } |
