[fractal] src/application.rs: Port to AdwAboutWindow



commit a4a030c32bf6021e464fae2520cc11bbfdbf8404
Author: TheEvilSkeleton <theevilskeleton riseup net>
Date:   Thu Aug 11 16:50:03 2022 -0400

    src/application.rs: Port to AdwAboutWindow
    
    Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1131>

 src/application.rs | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/src/application.rs b/src/application.rs
index 038fff84b..846bff75a 100644
--- a/src/application.rs
+++ b/src/application.rs
@@ -160,17 +160,19 @@ impl Application {
     }
 
     fn show_about_dialog(&self) {
-        let dialog = gtk::AboutDialog::builder()
-            .logo_icon_name(config::APP_ID)
+        let dialog = adw::AboutWindow::builder()
+            .application_name("Fractal")
+            .application_icon(config::APP_ID)
+            .developer_name(&gettext("The Fractal Team"))
             .license_type(gtk::License::Gpl30)
             .website("https://gitlab.gnome.org/GNOME/fractal/";)
-            .website_label(gettext("Learn more about Fractal").as_str())
+            .issue_url("https://gitlab.gnome.org/GNOME/fractal/-/issues";)
+            .support_url("https://matrix.to/#/#fractal:gnome.org";)
             .version(config::VERSION)
             .transient_for(&self.get_main_window())
             .modal(true)
-            .comments(gettext("A Matrix client for GNOME").as_str())
-            .copyright(gettext("© 2017-2022 The Fractal Team").as_str())
-            .authors(vec![
+            .copyright(&gettext("© 2017-2022 The Fractal Team"))
+            .developers(vec![
                 "Alejandro Domínguez".to_string(),
                 "Alexandre Franke".to_string(),
                 "Bilal Elmoussaoui".to_string(),
@@ -182,12 +184,12 @@ impl Application {
                 "Kévin Commaille".to_string(),
                 "Saurav Sachidanand".to_string(),
             ])
-            .artists(vec!["Tobias Bernard".to_string()])
-            .translator_credits(gettext("translator-credits").as_str())
+            .designers(vec!["Tobias Bernard".to_string()])
+            .translator_credits(&gettext("translator-credits"))
             .build();
 
         // This can't be added via the builder
-        dialog.add_credit_section(gettext("Name by").as_str(), &["Regina Bíró"]);
+        dialog.add_credit_section(Some(&gettext("Name by")), &["Regina Bíró"]);
 
         dialog.show();
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]