[gnome-software: 1/2] search-page: Use HdyStatusPage for the empty state
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/2] search-page: Use HdyStatusPage for the empty state
- Date: Mon, 26 Jul 2021 09:40:49 +0000 (UTC)
commit bbf0a5c00a94828b874ce4f5b811925ce42659ce
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Jul 23 14:23:17 2021 +0200
search-page: Use HdyStatusPage for the empty state
This makes the code simpler and in line with the latest designs.
src/gs-search-page.ui | 42 +++---------------------------------------
1 file changed, 3 insertions(+), 39 deletions(-)
---
diff --git a/src/gs-search-page.ui b/src/gs-search-page.ui
index efe9848d6..559bea542 100644
--- a/src/gs-search-page.ui
+++ b/src/gs-search-page.ui
@@ -23,46 +23,10 @@
</packing>
</child>
<child>
- <object class="GtkGrid" id="noresults_grid_search">
+ <object class="HdyStatusPage" id="noresults_grid_search">
<property name="visible">True</property>
- <property name="hexpand">True</property>
- <property name="vexpand">True</property>
- <property name="halign">center</property>
- <property name="valign">center</property>
- <property name="row-spacing">12</property>
- <property name="column-spacing">12</property>
- <style>
- <class name="dim-label"/>
- </style>
- <child>
- <object class="GtkImage" id="noresults_icon">
- <property name="visible">True</property>
- <property name="icon_name">org.gnome.Software-symbolic</property>
- <property name="pixel-size">64</property>
- <style>
- <class name="dim-label"/>
- </style>
- </object>
- <packing>
- <property name="left-attach">0</property>
- <property name="top-attach">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="noresults_label">
- <property name="visible">True</property>
- <property name="label" translatable="yes">No Application Found</property>
- <property name="halign">start</property>
- <property name="valign">center</property>
- <attributes>
- <attribute name="scale" value="1.4"/>
- </attributes>
- </object>
- <packing>
- <property name="left-attach">1</property>
- <property name="top-attach">0</property>
- </packing>
- </child>
+ <property name="icon_name">org.gnome.Software-symbolic</property>
+ <property name="title" translatable="yes">No Application Found</property>
</object>
<packing>
<property name="name">no-results</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]