[gnome-software/wip/ubuntu-3-20: 53/57] Use 'Ubuntu Software' title in Ubuntu
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/ubuntu-3-20: 53/57] Use 'Ubuntu Software' title in Ubuntu
- Date: Thu, 5 Oct 2017 04:14:52 +0000 (UTC)
commit b85d592721fd92bd0b67a5e7672e538b4a106c04
Author: Sebastien Bacher <seb128 ubuntu com>
Date: Sun Jun 18 13:18:01 2017 +1200
Use 'Ubuntu Software' title in Ubuntu
src/gs-application.c | 8 ++++++--
src/gs-shell.c | 8 ++++++--
2 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index d403c20..08df044 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -374,8 +374,12 @@ about_activated (GSimpleAction *action,
/* TRANSLATORS: this is the title of the about window */
gtk_window_set_title (GTK_WINDOW (dialog), _("About Software"));
- /* TRANSLATORS: this is the application name */
- gtk_about_dialog_set_program_name (dialog, _("Software"));
+ if (gs_utils_is_current_desktop ("Unity"))
+ /* TRANSLATORS: this is the application name */
+ gtk_about_dialog_set_program_name (dialog, _("Ubuntu Software"));
+ else
+ /* TRANSLATORS: this is the application name */
+ gtk_about_dialog_set_program_name (dialog, _("Software"));
/* TRANSLATORS: well, we seem to think so, anyway */
gtk_about_dialog_set_comments (dialog, _("A nice way to manage the "
diff --git a/src/gs-shell.c b/src/gs-shell.c
index b268f12..c246424 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -245,8 +245,12 @@ gs_shell_change_mode (GsShell *shell,
context = gtk_widget_get_style_context (GTK_WIDGET (gtk_builder_get_object (priv->builder,
"header")));
gtk_style_context_remove_class (context, "selection-mode");
/* set the window title back to default */
- /* TRANSLATORS: this is the main window title */
- gtk_window_set_title (priv->main_window, _("Software"));
+ if (gs_utils_is_current_desktop ("Unity"))
+ /* TRANSLATORS: this is the main window title */
+ gtk_window_set_title (priv->main_window, _("Ubuntu Software"));
+ else
+ /* TRANSLATORS: this is the main window title */
+ gtk_window_set_title (priv->main_window, _("Software"));
/* show the back button if needed */
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_back"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]