From 06cee16c89036cbf38cccb002292f9caab09373d Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 1 Aug 2019 10:09:56 +0200 Subject: [PATCH] apps/gophers: update gio version Signed-off-by: Elias Naur --- apps/go.mod | 2 +- apps/gophers/main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/go.mod b/apps/go.mod index 9de92f28..affabd19 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-20190731205330-46b9e7b9ab44 + gioui.org/ui v0.0.0-20190801080619-bfece0bebacb 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 3d3751b2..bd3d26c0 100644 --- a/apps/gophers/main.go +++ b/apps/gophers/main.go @@ -541,7 +541,7 @@ func (a *ActionButton) Layout(c ui.Config, q input.Queue, ops *ui.Ops, cs layout in := layout.Inset{Top: ui.Dp(4)} cs = in.Begin(c, ops, cs) dims := fab(ops, cs, a.sendIco.image(c), theme.brand, c.Px(ui.Dp(56))) - pointer.EllipseAreaOp{Size: dims.Size}.Add(ops) + pointer.EllipseAreaOp{Rect: image.Rectangle{Max: dims.Size}}.Add(ops) dims = in.End(dims) return f.Layout(f.End(dims)) } @@ -612,7 +612,7 @@ func (a *App) user(c ui.Config, ops *ui.Ops, cs layout.Constraints, index int) l c2 := f.End(dims) dims = f.Layout(c1, c2) dims = in.End(dims) - pointer.RectAreaOp{Size: dims.Size}.Add(ops) + pointer.RectAreaOp{Rect: image.Rectangle{Max: dims.Size}}.Add(ops) click := &a.userClicks[index] click.Add(ops) }