summaryrefslogtreecommitdiff
path: root/redo/window.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/window.go
parentdccf548ffa64702bc058d7d8288127212b8bdce0 (diff)
Fixed most compilation errors and added GTK+ string helper functions to common_unix.go.
Diffstat (limited to 'redo/window.go')
-rw-r--r--redo/window.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/redo/window.go b/redo/window.go
index 27160c2..fd5c437 100644
--- a/redo/window.go
+++ b/redo/window.go
@@ -41,6 +41,7 @@ func NewWindow(title string, width int, height int) *Request {
// Example:
// w := ui.GetNewWindow(ui.Do, "Main Window")
func GetNewWindow(c Doer, title string, width int, height int) Window {
- c <- newWindow(title, width, height)
- return (<-c.resp).(Window)
+ req := newWindow(title, width, height)
+ c <- req
+ return (<-req.resp).(Window)
}