From 7b51b373e2a892061f11af9faf03cb22ac081d93 Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval R Date: Mon, 4 Oct 2021 21:09:21 +0200 Subject: [PATCH 1/3] main: Do not set prgname Should not be done in gtk 4 according to the migration guide. --- src/main.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 609840484..d717dc1c4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,7 +44,6 @@ fn main() { textdomain(GETTEXT_PACKAGE).expect("Invalid string passed to textdomain"); gtk::glib::set_application_name("Fractal"); - gtk::glib::set_prgname(Some("fractal")); gtk::init().expect("Unable to start GTK4"); adw::init(); -- GitLab From 3c602913e0894e1d720d77f158f7bc6151609625 Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval R Date: Mon, 4 Oct 2021 21:11:01 +0200 Subject: [PATCH 2/3] Do not not define the app name twice It is already done in g_set_application_name. --- src/application.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/application.rs b/src/application.rs index 0ccac8cb1..d5f38639a 100644 --- a/src/application.rs +++ b/src/application.rs @@ -158,7 +158,6 @@ impl Application { fn show_about_dialog(&self) { let dialog = gtk::AboutDialogBuilder::new() - .program_name("Fractal") .logo_icon_name(config::APP_ID) .license_type(gtk::License::Gpl30) .website("https://gitlab.gnome.org/GNOME/fractal/") -- GitLab From 6ac746bcfb2713572aa80e723034b9c58d73621c Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval R Date: Mon, 4 Oct 2021 21:13:24 +0200 Subject: [PATCH 3/3] login: Add translator note The application name set via g_set_application_name is not translatable, any appearance of the name should have a note indicating this. --- data/resources/ui/login.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/resources/ui/login.ui b/data/resources/ui/login.ui index a5a617340..92ed8ae9f 100644 --- a/data/resources/ui/login.ui +++ b/data/resources/ui/login.ui @@ -55,7 +55,7 @@ welcome - Welcome to Fractal + Welcome to Fractal 400 -- GitLab