ui/app,apps/gophers,apps/hello: accept nil WindowOptions in NewWindow

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-03-31 13:55:05 +02:00
parent f21b5eb1df
commit 1d67fad0c3
10 changed files with 21 additions and 18 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ type windowError struct {
err error
}
var windowOpts = make(chan WindowOptions)
var windowOpts = make(chan *WindowOptions)
var windows = make(chan windowError)
@@ -188,7 +188,7 @@ func gio_onCreate(view C.CFTypeRef) {
windows <- windowError{window: ow}
}
func createWindow(opts WindowOptions) (*Window, error) {
func createWindow(opts *WindowOptions) (*Window, error) {
windowOpts <- opts
werr := <-windows
return werr.window, werr.err