[gnome-software: 2/13] update-dialog: Use HdyStatusPage for the empty state




commit 85d5ebeabf76ce597323a3305ce85efcd50477f6
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Aug 3 13:55:06 2021 +0200

    update-dialog: Use HdyStatusPage for the empty state

 src/gs-update-dialog.ui | 31 +++----------------------------
 1 file changed, 3 insertions(+), 28 deletions(-)
---
diff --git a/src/gs-update-dialog.ui b/src/gs-update-dialog.ui
index 6e712adb9..d69f3e512 100644
--- a/src/gs-update-dialog.ui
+++ b/src/gs-update-dialog.ui
@@ -81,35 +81,10 @@
               </packing>
             </child>
             <child>
-              <object class="GtkBox" id="box_empty">
+              <object class="HdyStatusPage">
                 <property name="visible">True</property>
-                <property name="halign">center</property>
-                <property name="valign">center</property>
-                <property name="hexpand">True</property>
-                <property name="vexpand">True</property>
-                <property name="spacing">16</property>
-                <property name="orientation">vertical</property>
-                <style>
-                  <class name="dim-label"/>
-                </style>
-                <child>
-                  <object class="GtkImage" id="icon_empty">
-                    <property name="visible">True</property>
-                    <property name="icon_name">org.gnome.Software-symbolic</property>
-                    <property name="pixel-size">64</property>
-                  </object>
-                </child>
-                <child>
-                  <object class="GtkLabel" id="label_empty">
-                    <property name="visible">True</property>
-                    <property name="justify">center</property>
-                    <property name="label" translatable="yes">No updates have been installed on this 
system.</property>
-                    <property name="wrap">True</property>
-                    <property name="max_width_chars">40</property>
-                    <property name="halign">center</property>
-                    <property name="valign">center</property>
-                  </object>
-                </child>
+                <property name="icon_name">org.gnome.Software-symbolic</property>
+                <property name="title" translatable="yes">No updates have been installed on this 
system.</property>
               </object>
               <packing>
                 <property name="name">empty</property>


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