example: update gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-14 15:17:51 +02:00
parent fc521ec1ff
commit 3a27bcea2e
5 changed files with 19 additions and 16 deletions
+4 -3
View File
@@ -12,6 +12,7 @@ import (
"gioui.org/layout"
"gioui.org/text"
"gioui.org/unit"
"gioui.org/io/system"
"gioui.org/widget"
"gioui.org/widget/material"
@@ -42,10 +43,10 @@ func loop(w *app.Window) error {
for {
e := <-w.Events()
switch e := e.(type) {
case app.DestroyEvent:
case system.DestroyEvent:
return e.Err
case app.FrameEvent:
gtx.Reset(&e.Config, e.Size)
case system.FrameEvent:
gtx.Reset(e.Config, e.Size)
kitchen(gtx, th)
e.Frame(gtx.Ops)
}