mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
ui/app,apps/gophers,apps/hello: accept nil WindowOptions in NewWindow
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user