Skip to content

Commit 9f91116

Browse files
authoredJan 16, 2025
Merge pull request #33 from gesellix/dependabot/go_modules/gioui.org-0.8.0
Bump gioui.org from 0.7.1 to 0.8.0
2 parents 0280bcc + 2ad4c8f commit 9f91116

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed
 

‎cmd/main.go

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"fmt"
55
"image/color"
66
"os"
7-
"sync"
87
"time"
98

109
"gioui.org/app"
@@ -81,13 +80,22 @@ func main() {
8180

8281
// TODO work around https://todo.sr.ht/~eliasnaur/gio/602
8382
// this should only be required shortly after creating the window w.
84-
applyOptions := sync.OnceFunc(func() {
83+
applyOptions := func() {
8584
w.Option(app.Decorated(false))
8685
w.Perform(system.ActionCenter)
87-
})
86+
}
87+
//applyOptions := sync.OnceFunc(func() {
88+
// w.Option(app.Decorated(false))
89+
// w.Perform(system.ActionCenter)
90+
//})
8891
var ops op.Ops
8992
for {
9093
switch e := w.Event().(type) {
94+
//case app.ConfigEvent:
95+
// TODO work around https://todo.sr.ht/~eliasnaur/gio/602
96+
// this should only be required shortly after creating the window w.
97+
//go applyOptions()
98+
9199
case app.FrameEvent:
92100
// TODO work around https://todo.sr.ht/~eliasnaur/gio/602
93101
// this should only be required shortly after creating the window w.

‎go.mod

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ go 1.22
55
toolchain go1.22.3
66

77
require (
8-
gioui.org v0.7.1
8+
gioui.org v0.8.0
99
golang.org/x/image v0.23.0
1010
)
1111

1212
require (
13-
gioui.org/cpu v0.0.0-20220412190645-f1e9e8c3b1f7 // indirect
1413
gioui.org/shader v1.0.8 // indirect
15-
github.com/go-text/typesetting v0.1.2 // indirect
14+
github.com/go-text/typesetting v0.2.1 // indirect
1615
golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect
1716
golang.org/x/exp/shiny v0.0.0-20240707233637-46b078467d37 // indirect
1817
golang.org/x/sys v0.26.0 // indirect

‎go.sum

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
eliasnaur.com/font v0.0.0-20230308162249-dd43949cb42d h1:ARo7NCVvN2NdhLlJE9xAbKweuI9L6UgfTbYb0YwPacY=
22
eliasnaur.com/font v0.0.0-20230308162249-dd43949cb42d/go.mod h1:OYVuxibdk9OSLX8vAqydtRPP87PyTFcT9uH3MlEGBQA=
3-
gioui.org v0.7.1 h1:l7OVj47n1z8acaszQ6Wlu+Rxme+HqF3q8b+Fs68+x3w=
4-
gioui.org v0.7.1/go.mod h1:5Kw/q7R1BWc5MKStuTNvhCgSrRqbfHc9Dzfjs4IGgZo=
3+
gioui.org v0.8.0 h1:QV5p5JvsmSmGiIXVYOKn6d9YDliTfjtLlVf5J+BZ9Pg=
4+
gioui.org v0.8.0/go.mod h1:vEMmpxMOd/iwJhXvGVIzWEbxMWhnMQ9aByOGQdlQ8rc=
55
gioui.org/cpu v0.0.0-20210808092351-bfe733dd3334/go.mod h1:A8M0Cn5o+vY5LTMlnRoK3O5kG+rH0kWfJjeKd9QpBmQ=
6-
gioui.org/cpu v0.0.0-20220412190645-f1e9e8c3b1f7 h1:tNJdnP5CgM39PRc+KWmBRRYX/zJ+rd5XaYxY5d5veqA=
7-
gioui.org/cpu v0.0.0-20220412190645-f1e9e8c3b1f7/go.mod h1:A8M0Cn5o+vY5LTMlnRoK3O5kG+rH0kWfJjeKd9QpBmQ=
86
gioui.org/shader v1.0.8 h1:6ks0o/A+b0ne7RzEqRZK5f4Gboz2CfG+mVliciy6+qA=
97
gioui.org/shader v1.0.8/go.mod h1:mWdiME581d/kV7/iEhLmUgUK5iZ09XR5XpduXzbePVM=
10-
github.com/go-text/typesetting v0.1.2 h1:KmZOfoxrrYgghohzXgNY7aQPgQ4W+QeKPeRI8yqpDDE=
11-
github.com/go-text/typesetting v0.1.2/go.mod h1:2+owI/sxa73XA581LAzVuEBZ3WEEV2pXeDswCH/3i1I=
12-
github.com/go-text/typesetting-utils v0.0.0-20240317173224-1986cbe96c66 h1:GUrm65PQPlhFSKjLPGOZNPNxLCybjzjYBzjfoBGaDUY=
13-
github.com/go-text/typesetting-utils v0.0.0-20240317173224-1986cbe96c66/go.mod h1:DDxDdQEnB70R8owOx3LVpEFvpMK9eeH1o2r0yZhFI9o=
8+
github.com/go-text/typesetting v0.2.1 h1:x0jMOGyO3d1qFAPI0j4GSsh7M0Q3Ypjzr4+CEVg82V8=
9+
github.com/go-text/typesetting v0.2.1/go.mod h1:mTOxEwasOFpAMBjEQDhdWRckoLLeI/+qrQeBCTGEt6M=
10+
github.com/go-text/typesetting-utils v0.0.0-20241103174707-87a29e9e6066 h1:qCuYC+94v2xrb1PoS4NIDe7DGYtLnU2wWiQe9a1B1c0=
11+
github.com/go-text/typesetting-utils v0.0.0-20241103174707-87a29e9e6066/go.mod h1:DDxDdQEnB70R8owOx3LVpEFvpMK9eeH1o2r0yZhFI9o=
1412
golang.org/x/exp v0.0.0-20240707233637-46b078467d37 h1:uLDX+AfeFCct3a2C7uIWBKMJIR3CJMhcgfrUAqjRK6w=
1513
golang.org/x/exp v0.0.0-20240707233637-46b078467d37/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY=
1614
golang.org/x/exp/shiny v0.0.0-20240707233637-46b078467d37 h1:SOSg7+sueresE4IbmmGM60GmlIys+zNX63d6/J4CMtU=

0 commit comments

Comments
 (0)