[gnome-software/1021-please-add-a-way-to-show-only-open-source-apps: 10/11] misc: Rename 'Update Preferences' into 'Preferences'




commit 721cf35f13d43347280939afb142b910aece5a3b
Author: Milan Crha <mcrha redhat com>
Date:   Mon Oct 10 14:53:23 2022 +0200

    misc: Rename 'Update Preferences' into 'Preferences'
    
    Since the Preferences hold more than just Update settings.

 src/gs-application.c   | 2 +-
 src/gs-prefs-dialog.ui | 4 ++--
 src/gs-shell.ui        | 2 +-
 src/style.css          | 4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index 961c40019..6777c5fea 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -144,7 +144,7 @@ gs_application_init (GsApplication *application)
                { "autoupdate", 0, 0, G_OPTION_ARG_NONE, NULL,
                  _("Installs any pending updates in the background"), NULL },
                { "prefs", 0, 0, G_OPTION_ARG_NONE, NULL,
-                 _("Show update preferences"), NULL },
+                 _("Show preferences"), NULL },
                { "quit", 0, 0, G_OPTION_ARG_NONE, NULL,
                  _("Quit the running instance"), NULL },
                { "prefer-local", '\0', 0, G_OPTION_ARG_NONE, NULL,
diff --git a/src/gs-prefs-dialog.ui b/src/gs-prefs-dialog.ui
index afb83186a..d8df96be7 100644
--- a/src/gs-prefs-dialog.ui
+++ b/src/gs-prefs-dialog.ui
@@ -2,12 +2,12 @@
 <interface>
   <requires lib="gtk+" version="3.10"/>
   <template class="GsPrefsDialog" parent="AdwPreferencesWindow">
-    <property name="title" translatable="yes">Update Preferences</property>
+    <property name="title" translatable="yes">Preferences</property>
     <property name="default_width">610</property>
     <property name="default_height">370</property>
     <property name="search_enabled">False</property>
     <style>
-      <class name="update-preferences"/>
+      <class name="preferences"/>
     </style>
     <child>
       <object class="AdwPreferencesPage">
diff --git a/src/gs-shell.ui b/src/gs-shell.ui
index 52e4a43f0..4aa7d79c8 100644
--- a/src/gs-shell.ui
+++ b/src/gs-shell.ui
@@ -9,7 +9,7 @@
       <attribute name="hidden-when">action-disabled</attribute>
     </item>
     <item>
-      <attribute name="label" translatable="yes">_Update Preferences</attribute>
+      <attribute name="label" translatable="yes">_Preferences</attribute>
       <attribute name="action">app.prefs</attribute>
     </item>
   </menu>
diff --git a/src/style.css b/src/style.css
index b36620824..8c907a550 100644
--- a/src/style.css
+++ b/src/style.css
@@ -330,10 +330,10 @@ scrolledwindow.list-page > viewport > clamp > box {
        border-spacing: 24px;
 }
 
-/* Increase the spacing in the Update Preferences window between the label and
+/* Increase the spacing in the Preferences window between the label and
  * the listbox. */
 
-.update-preferences preferencesgroup > box > box {
+.preferences preferencesgroup > box > box {
        margin-top: 18px;
 }
 


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