summaryrefslogtreecommitdiff
path: root/redo/controls.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-07 22:46:23 -0400
committerPietro Gagliardi <[email protected]>2014-07-07 22:46:23 -0400
commitd874148760328786c9d12f871a27b97be0774a6d (patch)
tree0ab7bc04bcf57e47bcb34209b8b731ec81039cc0 /redo/controls.go
parentdccf548ffa64702bc058d7d8288127212b8bdce0 (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.go5
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)
}