Skip to content

Commit

Permalink
feat: Replace Adw.AboutWindow with Adw.AboutDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
ryonakano committed May 8, 2024
1 parent a40ff21 commit 38e4f82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ You'll need the following dependencies:

* blueprint-compiler
* [libchcase](https://github.com/ryonakano/chcase)
* libadwaita-1-dev (>= 1.4)
* libadwaita-1-dev (>= 1.5)
* libgranite-7-dev (>= 7.2.0, required only when you build with `granite` feature enabled)
* libgtk4-dev
* libgtksourceview-5-dev
Expand Down
6 changes: 2 additions & 4 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,10 @@ public class Application : Adw.Application {
"Leo https://github.com/lenemter",
};

var about_window = new Adw.AboutWindow.from_appdata (
var about_dialog = new Adw.AboutDialog.from_appdata (
"%s/%s.metainfo.xml".printf (Config.RESOURCE_PREFIX, Config.APP_ID),
null
) {
transient_for = get_active_window (),
modal = true,
version = Config.APP_VERSION,
copyright = "© 2020-2024 Ryo Nakano",
developers = DEVELOPERS,
Expand All @@ -127,7 +125,7 @@ public class Application : Adw.Application {
///John Doe https://example.com
translator_credits = _("translator-credits")
};
about_window.present ();
about_dialog.present (get_active_window ());
}

public static int main (string[] args) {
Expand Down
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ endif

dependencies = [
granite_dep,
dependency('libadwaita-1', version: '>= 1.4'),
dependency('libadwaita-1', version: '>= 1.5'),
dependency('gtk4'),
dependency('gtksourceview-5'),
]
Expand Down

0 comments on commit 38e4f82

Please sign in to comment.