Use a HdyStatusPage as a place holder for the notifications list

Tue, 05 Jul 2022 00:06:54 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 05 Jul 2022 00:06:54 -0500
changeset 41442
80d00b75945c
parent 41441
e114ed471a1e
child 41443
60cec3b7ad30

Use a HdyStatusPage as a place holder for the notifications list

Testing Done:
Ran locally.

Reviewed at https://reviews.imfreedom.org/r/1518/

pidgin/resources/Notifications/list.ui file | annotate | diff | comparison | revisions
--- a/pidgin/resources/Notifications/list.ui	Mon Jul 04 23:24:35 2022 -0500
+++ b/pidgin/resources/Notifications/list.ui	Tue Jul 05 00:06:54 2022 -0500
@@ -15,11 +15,13 @@
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
-along with this program; if not, see <https://www.gnu.org/licenses/>.
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 -->
 <interface>
   <requires lib="gtk+" version="3.24"/>
+  <requires lib="libhandy" version="1.2"/>
   <!-- interface-license-type gplv2 -->
   <!-- interface-name Pidgin -->
   <!-- interface-description Internet Messenger -->
@@ -29,28 +31,27 @@
     <property name="can-focus">False</property>
     <property name="orientation">vertical</property>
     <child>
-      <object class="GtkLabel">
+      <object class="GtkListBox" id="list_box">
         <property name="visible">True</property>
         <property name="can-focus">False</property>
-        <property name="label" translatable="yes">Notifications</property>
-        <property name="xalign">0</property>
+        <child type="placeholder">
+          <object class="HdyStatusPage">
+            <property name="visible">True</property>
+            <property name="can-focus">False</property>
+            <property name="icon-name">mail-read-symbolic</property>
+            <property name="title" translatable="yes">Notifications</property>
+            <property name="description" translatable="yes">You're all caught up!</property>
+            <child>
+              <placeholder/>
+            </child>
+          </object>
+        </child>
       </object>
       <packing>
-        <property name="expand">False</property>
+        <property name="expand">True</property>
         <property name="fill">True</property>
         <property name="position">0</property>
       </packing>
     </child>
-    <child>
-      <object class="GtkListBox" id="list_box">
-        <property name="visible">True</property>
-        <property name="can-focus">False</property>
-      </object>
-      <packing>
-        <property name="expand">True</property>
-        <property name="fill">True</property>
-        <property name="position">1</property>
-      </packing>
-    </child>
   </template>
 </interface>

mercurial