diff --git a/apps/go.mod b/apps/go.mod index 722ee0ed..462300eb 100644 --- a/apps/go.mod +++ b/apps/go.mod @@ -3,7 +3,7 @@ module gioui.org/apps go 1.12 require ( - gioui.org/ui v0.0.0-20190814083508-56926a044990 + gioui.org/ui v0.0.0-20190821125935-6a7e38eb329f github.com/google/go-github/v24 v24.0.1 golang.org/x/exp v0.0.0-20190627132806-fd42eb6b336f golang.org/x/image v0.0.0-20190703141733-d6a02ce849c9 diff --git a/apps/gophers/main.go b/apps/gophers/main.go index 3ad608e7..7875bef3 100644 --- a/apps/gophers/main.go +++ b/apps/gophers/main.go @@ -54,11 +54,11 @@ func main() { fmt.Println("See https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line.") } go func() { - w := app.NewWindow(&app.WindowOptions{ - Width: ui.Dp(400), - Height: ui.Dp(800), - Title: "Gophers", - }) + w := app.NewWindow( + app.WithWidth(ui.Dp(400)), + app.WithHeight(ui.Dp(800)), + app.WithTitle("Gophers"), + ) if err := newApp(w).run(); err != nil { log.Fatal(err) } diff --git a/apps/hello/hello.go b/apps/hello/hello.go index 448ad8cf..f6bb2f6b 100644 --- a/apps/hello/hello.go +++ b/apps/hello/hello.go @@ -21,7 +21,7 @@ import ( func main() { go func() { - w := app.NewWindow(nil) + w := app.NewWindow() if err := loop(w); err != nil { log.Fatal(err) }