summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsunflowerskater <sunflowerskater@tutanota.com>2023-04-20 14:49:47 -0300
committerFelipe Borges <felipeborges@gnome.org>2023-04-21 12:40:42 +0000
commitc95dcf2a9a4a04b4677cab39f4b4ec5325935d47 (patch)
tree906aed6e4b3851a5980fbf68c70f10d6053de53c
parentaf31673bad8c6b616f4d4ff6d34db00c6f98d3d3 (diff)
downloadgnome-control-center-c95dcf2a9a4a04b4677cab39f4b4ec5325935d47.tar.gz
general: Add placeholder text to various search entries
Acc. HIG, "text fields should have placeholder text or a label". https://developer.gnome.org/hig/patterns/controls/text-fields.html Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2190
-rw-r--r--panels/applications/cc-applications-panel.ui1
-rw-r--r--panels/common/cc-language-chooser.ui1
-rw-r--r--panels/datetime/cc-tz-dialog.ui1
-rw-r--r--panels/keyboard/cc-input-chooser.ui1
-rw-r--r--panels/keyboard/cc-keyboard-shortcut-dialog.ui1
-rw-r--r--panels/printers/printers.ui1
-rw-r--r--shell/cc-window.ui1
7 files changed, 7 insertions, 0 deletions
diff --git a/panels/applications/cc-applications-panel.ui b/panels/applications/cc-applications-panel.ui
index 72b890826..195183db6 100644
--- a/panels/applications/cc-applications-panel.ui
+++ b/panels/applications/cc-applications-panel.ui
@@ -255,6 +255,7 @@
<property name="orientation">vertical</property>
<child>
<object class="GtkSearchEntry" id="sidebar_search_entry">
+ <property name="placeholder_text" translatable="yes">Search apps</property>
<property name="margin-top">12</property>
<property name="margin-bottom">6</property>
<property name="margin-start">12</property>
diff --git a/panels/common/cc-language-chooser.ui b/panels/common/cc-language-chooser.ui
index 4efc9a829..0677f32b2 100644
--- a/panels/common/cc-language-chooser.ui
+++ b/panels/common/cc-language-chooser.ui
@@ -32,6 +32,7 @@
<property name="hexpand">True</property>
<child>
<object class="GtkSearchEntry" id="language_filter_entry">
+ <property name="placeholder_text" translatable="yes">Language or country</property>
<property name="width_chars">30</property>
<signal name="search-changed" handler="language_filter_entry_search_changed_cb" object="CcLanguageChooser" swapped="yes"/>
</object>
diff --git a/panels/datetime/cc-tz-dialog.ui b/panels/datetime/cc-tz-dialog.ui
index 9143af610..2a52843d8 100644
--- a/panels/datetime/cc-tz-dialog.ui
+++ b/panels/datetime/cc-tz-dialog.ui
@@ -22,6 +22,7 @@
<!-- SearchBar -->
<child>
<object class="GtkSearchEntry" id="location_entry">
+ <property name="placeholder_text" translatable="yes">Search cities</property>
<property name="halign">center</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
diff --git a/panels/keyboard/cc-input-chooser.ui b/panels/keyboard/cc-input-chooser.ui
index 74dd39a62..03e29d58f 100644
--- a/panels/keyboard/cc-input-chooser.ui
+++ b/panels/keyboard/cc-input-chooser.ui
@@ -65,6 +65,7 @@
</child>
<child>
<object class="GtkSearchEntry" id="filter_entry">
+ <property name="placeholder_text" translatable="yes">Language or country</property>
<property name="visible">False</property>
<property name="hexpand">True</property>
<property name="margin-start">6</property>
diff --git a/panels/keyboard/cc-keyboard-shortcut-dialog.ui b/panels/keyboard/cc-keyboard-shortcut-dialog.ui
index 47734f565..6d017db58 100644
--- a/panels/keyboard/cc-keyboard-shortcut-dialog.ui
+++ b/panels/keyboard/cc-keyboard-shortcut-dialog.ui
@@ -42,6 +42,7 @@
<object class="GtkBox">
<child>
<object class="GtkSearchEntry" id="search_entry">
+ <property name="placeholder_text" translatable="yes">Search shortcuts</property>
<property name="halign">center</property>
<property name="width-chars">28</property>
<signal name="search-changed" handler="shortcut_search_entry_changed_cb" swapped="yes" />
diff --git a/panels/printers/printers.ui b/panels/printers/printers.ui
index 123795f37..810d835ca 100644
--- a/panels/printers/printers.ui
+++ b/panels/printers/printers.ui
@@ -105,6 +105,7 @@
<property name="search_mode_enabled" bind-source="search-button" bind-property="active" bind-flags="bidirectional" />
<child>
<object class="GtkSearchEntry" id="search-entry">
+ <property name="placeholder_text" translatable="yes">Search printers</property>
<property name="width_chars">30</property>
</object>
</child>
diff --git a/shell/cc-window.ui b/shell/cc-window.ui
index bcbed4e60..a6959602e 100644
--- a/shell/cc-window.ui
+++ b/shell/cc-window.ui
@@ -68,6 +68,7 @@
<property name="search_mode_enabled" bind-source="search_button" bind-property="active" bind-flags="sync-create|bidirectional" />
<child>
<object class="GtkSearchEntry" id="search_entry">
+ <property name="placeholder_text" translatable="yes">Search settings</property>
<property name="width_chars">25</property>
<property name="max_width_chars">25</property>
<signal name="activate" handler="search_entry_activate_cb" object="CcWindow" swapped="yes" />