gnome-shell/SOURCES/0001-welcomeDialog-Adapt-dialog-title.patch

39 lines
1.4 KiB
Diff
Raw Normal View History

2022-03-01 11:18:08 +00:00
From 79049292451b9bb23ad92c572a438585ca37246b Mon Sep 17 00:00:00 2001
2021-12-07 18:04:51 +00:00
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Wed, 27 Oct 2021 15:18:20 +0200
Subject: [PATCH] welcomeDialog: Adapt dialog title
Use RHEL branding instead of the upstream GNOME XX one.
---
2022-03-01 11:18:08 +00:00
js/ui/welcomeDialog.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
2021-12-07 18:04:51 +00:00
diff --git a/js/ui/welcomeDialog.js b/js/ui/welcomeDialog.js
2022-03-01 11:18:08 +00:00
index 9d99f0035..783fd1108 100644
2021-12-07 18:04:51 +00:00
--- a/js/ui/welcomeDialog.js
+++ b/js/ui/welcomeDialog.js
2022-03-01 11:18:08 +00:00
@@ -1,9 +1,8 @@
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
/* exported WelcomeDialog */
2021-12-07 18:04:51 +00:00
2022-03-01 11:18:08 +00:00
-const { Clutter, GObject, Shell, St } = imports.gi;
+const { Clutter, GLib, GObject, Shell, St } = imports.gi;
2021-12-07 18:04:51 +00:00
-const Config = imports.misc.config;
const Dialog = imports.ui.dialog;
const Main = imports.ui.main;
const ModalDialog = imports.ui.modalDialog;
@@ -32,8 +31,7 @@ class WelcomeDialog extends ModalDialog.ModalDialog {
}
_buildLayout() {
- const [majorVersion] = Config.PACKAGE_VERSION.split('.');
- const title = _('Welcome to GNOME %s').format(majorVersion);
2022-03-01 11:18:08 +00:00
+ const title = _('Welcome to %s').format(GLib.get_os_info('NAME'));
2021-12-07 18:04:51 +00:00
const description = _('If you want to learn your way around, check out the tour.');
const content = new Dialog.MessageDialogContent({ title, description });
--
2022-03-01 11:18:08 +00:00
2.33.1
2021-12-07 18:04:51 +00:00