From c27162d4319d1148372189320e9bbfc60d45a493 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Fri, 16 Nov 2018 18:08:53 +0000 Subject: [PATCH] Update to new app api --- README.md | 8 ++++---- cmd/hello/main.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e145db25d0..55c7961985 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,10 @@ And then you're ready to write your first app! package main import "github.com/fyne-io/fyne/widget" - import "github.com/fyne-io/fyne/desktop" + import "github.com/fyne-io/fyne/app" func main() { - app := desktop.NewApp() + app := app.New() w := app.NewWindow("Hello") w.SetContent(widget.NewList( @@ -123,11 +123,11 @@ The following is exactly the same as the code above but in this different style. package main import "github.com/fyne-io/fyne" -import "github.com/fyne-io/fyne/desktop" +import "github.com/fyne-io/fyne/app" import "github.com/fyne-io/fyne/widget" func main() { - app := desktop.NewApp() + app := app.New() w := app.NewWindow("Hello") w.SetContent(&widget.List{Children: []fyne.CanvasObject{ diff --git a/cmd/hello/main.go b/cmd/hello/main.go index cfbc4a6dfa..0ac0e9306d 100644 --- a/cmd/hello/main.go +++ b/cmd/hello/main.go @@ -4,11 +4,11 @@ package main import "github.com/fyne-io/fyne" -import "github.com/fyne-io/fyne/desktop" +import "github.com/fyne-io/fyne/app" import "github.com/fyne-io/fyne/widget" func main() { - app := desktop.NewApp() + app := app.New() w := app.NewWindow("Hello") w.SetContent(&widget.Box{Horizontal: false, Children: []fyne.CanvasObject{