1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-14 00:17:35 +00:00

history-box: Use HdyStatusPage for empty state

We have a standard widget for empty states in HdyStatusPage.
This commit uses that instead of rolling our own.
This commit is contained in:
Christopher Davis 2021-09-04 13:45:15 -07:00 committed by Christopher Davis
parent 48825b4ccd
commit 409f6598d9

View file

@ -4,33 +4,10 @@
<requires lib="gtk+" version="3.22"/>
<template class="CallsHistoryBox" parent="GtkStack">
<child>
<object class="GtkBox" id="empty">
<property name="visible">1</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
<object class="GtkImage">
<property name="visible">1</property>
<object class="HdyStatusPage">
<property name="visible">True</property>
<property name="icon-name">call-start-symbolic</property>
<property name="pixel-size">96</property>
</object>
</child>
<child>
<object class="GtkLabel" id="primary_label">
<property name="visible">1</property>
<property name="label" translatable="yes">No Recent Calls</property>
<property name="halign">start</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="scale" value="1.2"/>
</attributes>
</object>
</child>
<style>
<class name="dim-label"/>
</style>
<property name="title" translatable="yes">No Recent Calls</property>
</object>
<packing>
<property name="name">empty</property>