[fractal/fractal-next] Add information to the AboutDialog
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/fractal-next] Add information to the AboutDialog
- Date: Wed, 24 Mar 2021 08:32:38 +0000 (UTC)
commit 223938fd805b8f42b65a5975eaca3f999aa2653e
Author: Julian Sparber <julian sparber net>
Date: Mon Feb 15 14:37:19 2021 +0100
Add information to the AboutDialog
Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/725
src/application.rs | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/src/application.rs b/src/application.rs
index 03cd95e9..15ebf1e3 100644
--- a/src/application.rs
+++ b/src/application.rs
@@ -1,5 +1,6 @@
use crate::config;
use crate::widgets::FrctlWindow;
+use gettextrs::gettext;
use gio::ApplicationFlags;
use glib::clone;
use glib::WeakRef;
@@ -141,15 +142,32 @@ impl FrctlApplication {
let dialog = gtk::AboutDialogBuilder::new()
.program_name("Fractal")
.logo_icon_name(config::APP_ID)
- .license_type(gtk::License::MitX11)
+ .license_type(gtk::License::Gpl30)
.website("https://gitlab.gnome.org/GNOME/fractal/")
+ .website_label(gettext("Learn more about Fractal").as_str())
.version(config::VERSION)
.transient_for(&self.get_main_window())
.modal(true)
- .authors(vec!["Daniel García Moreno".into()])
- .artists(vec!["Daniel García Moreno".into()])
+ .comments(gettext("A Matrix.org client for GNOME").as_str())
+ .copyright(gettext("© 2017-2021 The Fractal Team").as_str())
+ .authors(vec![
+ "Alejandro Domínguez".to_string(),
+ "Alexandre Franke".to_string(),
+ "Bilal Elmoussaoui".to_string(),
+ "Christopher Davis".to_string(),
+ "Daniel García Moreno".to_string(),
+ "Eisha Chen-yen-su".to_string(),
+ "Jordan Petridis".to_string(),
+ "Julian Sparber".to_string(),
+ "Saurav Sachidanand".to_string(),
+ ])
+ .artists(vec!["Tobias Bernard".to_string()])
+ .translator_credits(gettext("translator-credits").as_str())
.build();
+ // This can't be added via the builder
+ dialog.add_credit_section(gettext("Name by").as_str(), &["Regina Bíró"]);
+
dialog.show();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]