Persistently show the placeholder text when nothing is typed in the
language search bar.
---
pyanaconda/ui/gui/spokes/welcome.glade | 3 ++-
pyanaconda/ui/gui/spokes/welcome.py | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/welcome.glade
b/pyanaconda/ui/gui/spokes/welcome.glade
index a10c136..7196133 100644
--- a/pyanaconda/ui/gui/spokes/welcome.glade
+++ b/pyanaconda/ui/gui/spokes/welcome.glade
@@ -261,7 +261,7 @@
</child>
<child>
<object class="GtkLabel"
id="pickLanguageLabel">
- <property name="height_request">45</property>
+ <property name="height_request">45</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
@@ -365,6 +365,7 @@
<property
name="invisible_char">●</property>
<property
name="invisible_char_set">True</property>
<property
name="secondary_icon_name">edit-clear-symbolic</property>
+ <property name="placeholder_text">Type here
to search.</property>
<signal name="changed"
handler="on_entry_changed" swapped="no"/>
<signal name="icon-release"
handler="on_clear_icon_clicked" swapped="no"/>
</object>
diff --git a/pyanaconda/ui/gui/spokes/welcome.py b/pyanaconda/ui/gui/spokes/welcome.py
index d4f8e15..1f150c2 100644
--- a/pyanaconda/ui/gui/spokes/welcome.py
+++ b/pyanaconda/ui/gui/spokes/welcome.py
@@ -263,7 +263,7 @@ class LanguageMixIn(object):
def on_clear_icon_clicked(self, entry, icon_pos, event):
if icon_pos == Gtk.EntryIconPosition.SECONDARY:
- entry.set_text("")
+ entry.set_text(entry.get_placeholder_text())
def on_entry_changed(self, *args):
self._languageStoreFilter.refilter()
--
1.7.11.7
Show replies by date
Persistently show the placeholder text when nothing is typed in the
language search bar.
---
pyanaconda/ui/gui/spokes/welcome.glade | 3 ++-
pyanaconda/ui/gui/spokes/welcome.py | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
Looks good.
- Chris