[libhandy] preferences-window: Use HdyStatusPage for the empty search
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] preferences-window: Use HdyStatusPage for the empty search
- Date: Fri, 18 Dec 2020 15:52:23 +0000 (UTC)
commit 78903cd45466b9a212b966291e2a0f7431572548
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Dec 3 12:36:39 2020 +0100
preferences-window: Use HdyStatusPage for the empty search
This makes the code simpler and UIs look more cohesive.
src/hdy-preferences-window.ui | 69 +++----------------------------------------
1 file changed, 4 insertions(+), 65 deletions(-)
---
diff --git a/src/hdy-preferences-window.ui b/src/hdy-preferences-window.ui
index 5f764fc9..7827400a 100644
--- a/src/hdy-preferences-window.ui
+++ b/src/hdy-preferences-window.ui
@@ -162,72 +162,11 @@
</packing>
</child>
<child>
- <object class="GtkScrolledWindow">
- <property name="can_focus">False</property>
- <property name="expand">True</property>
- <property name="hscrollbar_policy">never</property>
+ <object class="HdyStatusPage">
<property name="visible">True</property>
- <child>
- <object class="GtkBox">
- <property name="can_focus">False</property>
- <property name="halign">center</property>
- <property name="orientation">vertical</property>
- <property name="valign">center</property>
- <property name="vexpand">True</property>
- <property name="visible">True</property>
- <child>
- <object class="GtkImage">
- <property name="can_focus">False</property>
- <property name="icon_name">edit-find-symbolic</property>
- <property name="icon_size">0</property>
- <property name="margin_bottom">18</property>
- <property name="pixel_size">128</property>
- <property name="valign">center</property>
- <property name="visible">True</property>
- <style>
- <class name="dim-label"/>
- </style>
- </object>
- </child>
- <child>
- <object class="GtkBox">
- <property name="can_focus">False</property>
- <property name="margin_end">12</property>
- <property name="margin_start">12</property>
- <property name="orientation">vertical</property>
- <property name="visible">True</property>
- <child>
- <object class="GtkLabel">
- <property name="can_focus">False</property>
- <property name="halign">center</property>
- <property name="justify">center</property>
- <property name="label" translatable="yes">No Results Found</property>
- <property name="margin_bottom">12</property>
- <property name="opacity">0.5</property>
- <property name="visible">True</property>
- <property name="wrap">True</property>
- <attributes>
- <attribute name="scale" value="2"/>
- <attribute name="weight" value="bold"/>
- </attributes>
- </object>
- </child>
- <child>
- <object class="GtkLabel">
- <property name="can_focus">False</property>
- <property name="justify">center</property>
- <property name="label" translatable="yes">Try a different
search</property>
- <property name="margin_bottom">6</property>
- <property name="opacity">0.5</property>
- <property name="use_markup">True</property>
- <property name="visible">True</property>
- <property name="wrap">True</property>
- </object>
- </child>
- </object>
- </child>
- </object>
- </child>
+ <property name="icon-name">edit-find-symbolic</property>
+ <property name="title" translatable="yes">No Results Found</property>
+ <property name="description" translatable="yes">Try a different search.</property>
</object>
<packing>
<property name="name">no-results</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]