File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,12 @@ import (
9
9
10
10
"github.com/diamondburned/gotk4-adwaita/pkg/adw"
11
11
"github.com/diamondburned/gotk4/pkg/gtk/v4"
12
- "github.com/diamondburned/gotkit/app"
13
12
"github.com/diamondburned/gotkit/components/logui"
14
13
)
15
14
16
15
// New creates a new about window.
17
- func New (ctx context.Context ) * adw.AboutWindow {
18
- about := adw .NewAboutWindow ()
19
- about .SetTransientFor (app .GTKWindowFromContext (ctx ))
20
- about .SetModal (true )
16
+ func New (ctx context.Context ) * adw.AboutDialog {
17
+ about := adw .NewAboutDialog ()
21
18
about .SetApplicationName ("Dissent" )
22
19
about .SetApplicationIcon ("logo" )
23
20
about .SetVersion ("git" ) // TODO: version
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ func main() {
66
66
m .app = app .New (context .Background (), "so.libdb.dissent" , "Dissent" )
67
67
m .app .AddJSONActions (map [string ]interface {}{
68
68
"app.preferences" : func () { prefui .ShowDialog (m .win .Context ()) },
69
- "app.about" : func () { about .New (m .win .Context ()).Present () },
69
+ "app.about" : func () { about .New (m .win .Context ()).Present (m . win ) },
70
70
"app.logs" : func () { logui .ShowDefaultViewer (m .win .Context ()) },
71
71
"app.quit" : func () { m .app .Quit () },
72
72
})
You can’t perform that action at this time.
0 commit comments