Skip to content

Commit

Permalink
update gio version
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasnaur committed Oct 23, 2019
1 parent c50587d commit 82ee657
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 9 deletions.
3 changes: 2 additions & 1 deletion centering.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"gioui.org/app"
"gioui.org/f32"
_ "gioui.org/font/gofont"
"gioui.org/font/gofont"
"gioui.org/io/system"
"gioui.org/layout"
"gioui.org/op"
Expand All @@ -13,6 +13,7 @@ import (
func main() {
go func() {
w := app.NewWindow()
gofont.Register()
th := material.NewTheme()
gtx := &layout.Context{
Queue: w.Queue(),
Expand Down
3 changes: 2 additions & 1 deletion editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import (
"gioui.org/widget"
"gioui.org/widget/material"

_ "gioui.org/font/gofont"
"gioui.org/font/gofont"
)

func main() {
go func() {
w := app.NewWindow()
gofont.Register()
th := material.NewTheme()
// START INIT OMIT
editor := new(widget.Editor)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module gophercon2019

go 1.13

require gioui.org v0.0.0-20191014162007-f5e93206f602
require gioui.org v0.0.0-20191023082108-9a62468c25c4
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
gioui.org v0.0.0-20191014162007-f5e93206f602 h1:TSMbKy1gf9Z+ieKhUj3YnrZvngVLL40Z8dCSon6jhko=
gioui.org v0.0.0-20191014162007-f5e93206f602/go.mod h1:KqFFi2Dq5gYA3FJ0sDOt8OBXoMsuxMtE8v2f0JExXAY=
gioui.org v0.0.0-20191023082108-9a62468c25c4 h1:YUa9L4ibNehC2VN1iNmf/kbuqdnnYAM8kMqBPdnnKJk=
gioui.org v0.0.0-20191023082108-9a62468c25c4/go.mod h1:KqFFi2Dq5gYA3FJ0sDOt8OBXoMsuxMtE8v2f0JExXAY=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
Expand Down
3 changes: 2 additions & 1 deletion helloworld.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"gioui.org/app"
_ "gioui.org/font/gofont"
"gioui.org/font/gofont"
"gioui.org/io/system"
"gioui.org/layout"
"gioui.org/widget/material"
Expand All @@ -12,6 +12,7 @@ import (
func main() {
go func() {
w := app.NewWindow()
gofont.Register()
th := material.NewTheme()
gtx := &layout.Context{
Queue: w.Queue(),
Expand Down
3 changes: 2 additions & 1 deletion list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"

"gioui.org/app"
_ "gioui.org/font/gofont"
"gioui.org/font/gofont"
"gioui.org/io/system"
"gioui.org/layout"
"gioui.org/widget/material"
Expand All @@ -13,6 +13,7 @@ import (
func main() {
go func() {
w := app.NewWindow()
gofont.Register()
th := material.NewTheme()
// START INIT OMIT
list := &layout.List{
Expand Down
3 changes: 2 additions & 1 deletion twolabels1.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"gioui.org/app"
_ "gioui.org/font/gofont"
"gioui.org/font/gofont"
"gioui.org/io/system"
"gioui.org/layout"
"gioui.org/widget/material"
Expand All @@ -11,6 +11,7 @@ import (
func main() {
go func() {
w := app.NewWindow()
gofont.Register()
th := material.NewTheme()
gtx := &layout.Context{
Queue: w.Queue(),
Expand Down
3 changes: 2 additions & 1 deletion twolabels2.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"gioui.org/app"
"gioui.org/f32"
_ "gioui.org/font/gofont"
"gioui.org/font/gofont"
"gioui.org/io/system"
"gioui.org/layout"
"gioui.org/op"
Expand All @@ -13,6 +13,7 @@ import (
func main() {
go func() {
w := app.NewWindow()
gofont.Register()
th := material.NewTheme()
gtx := &layout.Context{
Queue: w.Queue(),
Expand Down

0 comments on commit 82ee657

Please sign in to comment.