2b923d514f05e7d4cfd2e3dda60b6f246fc0cc42 — Elias Naur a month ago 3b89fdc
cmd/scatter: update gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
3 files changed, 11 insertions(+), 12 deletions(-)

M cmd/scatter/ui.go
M go.mod
M go.sum
M cmd/scatter/ui.go => cmd/scatter/ui.go +8 -7
@@ 22,6 22,7 @@ import (
 	"gioui.org/io/key"
 	"gioui.org/io/pointer"
 	"gioui.org/io/profile"
+	"gioui.org/io/system"
 	"gioui.org/layout"
 	"gioui.org/op"
 	"gioui.org/op/paint"


@@ 222,10 223,10 @@ func (a *App) run() error {
 						a.w.Invalidate()
 					}
 				}
-			case app.DestroyEvent:
+			case system.DestroyEvent:
 				return e.Err
-			case app.StageEvent:
-				if e.Stage >= app.StageRunning {
+			case system.StageEvent:
+				if e.Stage >= system.StageRunning {
 					if a.env.client == nil {
 						a.env.client = getClient()
 						updates = a.env.client.register(a)


@@ 235,17 236,17 @@ func (a *App) run() error {
 						a.stack.Push(newThreadsPage(&a.env))
 					}
 				}
-			case *app.CommandEvent:
+			case *system.CommandEvent:
 				switch e.Type {
-				case app.CommandBack:
+				case system.CommandBack:
 					if a.stack.Len() > 1 {
 						a.stack.Pop()
 						e.Cancel = true
 						a.w.Invalidate()
 					}
 				}
-			case app.FrameEvent:
-				gtx.Reset(&e.Config, e.Size)
+			case system.FrameEvent:
+				gtx.Reset(e.Config, e.Size)
 				a.env.insets = layout.Inset{
 					Top:    e.Insets.Top,
 					Left:   e.Insets.Left,

M go.mod => go.mod +1 -1
@@ 3,7 3,7 @@ module scatter.im
 go 1.13
 
 require (
-	gioui.org v0.0.0-20191013162339-8cd4c2e5de65
+	gioui.org v0.0.0-20191014144402-3a27bcea2e78
 	github.com/eliasnaur/libsignal-protocol-go v0.0.0-20190626062856-3295f72b181e
 	github.com/emersion/go-imap v1.0.0-rc.1
 	github.com/emersion/go-imap-idle v0.0.0-20190519112320-2704abd7050e

M go.sum => go.sum +2 -4
@@ 1,8 1,6 @@
 dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
-gioui.org v0.0.0-20191012123625-abb99eca5c54 h1:1LQMwF6UgHRaAbwvoaKWmnv5LwKt2HyXJooDvkNkmRg=
-gioui.org v0.0.0-20191012123625-abb99eca5c54/go.mod h1:KqFFi2Dq5gYA3FJ0sDOt8OBXoMsuxMtE8v2f0JExXAY=
-gioui.org v0.0.0-20191013162339-8cd4c2e5de65 h1:94lyVLRIPhu95x3goGooL3ZxkDZgo9dRgR6Unecwre0=
-gioui.org v0.0.0-20191013162339-8cd4c2e5de65/go.mod h1:KqFFi2Dq5gYA3FJ0sDOt8OBXoMsuxMtE8v2f0JExXAY=
+gioui.org v0.0.0-20191014144402-3a27bcea2e78 h1:qb1ajYPzqnOuA4QaVee/0u1fpyH07Z5lxuykyr7mwYM=
+gioui.org v0.0.0-20191014144402-3a27bcea2e78/go.mod h1:KqFFi2Dq5gYA3FJ0sDOt8OBXoMsuxMtE8v2f0JExXAY=
 github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
 github.com/RadicalApp/complete v0.0.0-20170329192659-17e6c0ee499b h1:cAULFohNVfNzco0flF4okSPg3s7/tCj+hMIldtYZo4c=
 github.com/RadicalApp/complete v0.0.0-20170329192659-17e6c0ee499b/go.mod h1:zZ3+l0EkpT2ZPnoamPBG50PBUtQrXwwyJ6elQZMmqgk=