mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
apps/gophers: update gio version
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -28,8 +28,8 @@ func BenchmarkUI(b *testing.B) {
|
||||
}
|
||||
}
|
||||
|
||||
func (queue) Next(k ui.Key) (ui.Event, bool) {
|
||||
return nil, false
|
||||
func (queue) Events(k ui.Key) []ui.Event {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (config) Now() time.Time {
|
||||
|
||||
+2
-2
@@ -175,7 +175,7 @@ func (u *UI) layoutTimings(gtx *layout.Context) {
|
||||
if !u.profiling {
|
||||
return
|
||||
}
|
||||
for e, ok := gtx.Next(u); ok; e, ok = gtx.Next(u) {
|
||||
for _, e := range gtx.Events(u) {
|
||||
if e, ok := e.(system.ProfileEvent); ok {
|
||||
u.profile = e
|
||||
}
|
||||
@@ -197,7 +197,7 @@ func (u *UI) Layout(gtx *layout.Context) {
|
||||
u.faces.Reset(gtx)
|
||||
for i := range u.userClicks {
|
||||
click := &u.userClicks[i]
|
||||
for e, ok := click.Next(gtx); ok; e, ok = click.Next(gtx) {
|
||||
for _, e := range click.Events(gtx) {
|
||||
if e.Type == gesture.TypeClick {
|
||||
u.selectedUser = u.newUserPage(u.users[i])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user