Switch to AdwAboutWindow

This commit is contained in:
Bilal Elmoussaoui 2022-12-25 08:18:13 +01:00
parent 7cff5f9545
commit 594bf9fcf0
2 changed files with 5 additions and 5 deletions

View file

@ -4,7 +4,7 @@ name = "authenticator"
version = "4.1.6"
[dependencies]
adw = {package = "libadwaita", version = "0.2"}
adw = {package = "libadwaita", version = "0.2", features = ["v1_2"]}
anyhow = "1.0"
ashpd = {version = "0.4.0-alpha.1", features = ["pipewire", "gtk4"]}
binascii = "0.1"

View file

@ -114,13 +114,13 @@ mod imp {
let about_action = gio::ActionEntry::builder("about")
.activate(|app: &Self::Type, _, _| {
let window = app.active_window();
gtk::AboutDialog::builder()
.program_name(&gettext("Authenticator"))
adw::AboutWindow::builder()
.application_name(&gettext("Authenticator"))
.modal(true)
.version(config::VERSION)
.comments(&gettext("Generate Two-Factor Codes"))
.website("https://gitlab.gnome.org/World/Authenticator")
.authors(vec![
.developers(vec![
"Bilal Elmoussaoui".to_string(),
"Maximiliano Sandoval".to_string(),
"Christopher Davis".to_string(),
@ -131,7 +131,7 @@ mod imp {
"Tobias Bernard".to_string(),
])
.translator_credits(&gettext("translator-credits"))
.logo_icon_name(config::APP_ID)
.application_icon(config::APP_ID)
.license_type(gtk::License::Gpl30)
.transient_for(&window)
.build()