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:
parent
48825b4ccd
commit
409f6598d9
1 changed files with 4 additions and 27 deletions
|
@ -4,33 +4,10 @@
|
||||||
<requires lib="gtk+" version="3.22"/>
|
<requires lib="gtk+" version="3.22"/>
|
||||||
<template class="CallsHistoryBox" parent="GtkStack">
|
<template class="CallsHistoryBox" parent="GtkStack">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="empty">
|
<object class="HdyStatusPage">
|
||||||
<property name="visible">1</property>
|
<property name="visible">True</property>
|
||||||
<property name="halign">center</property>
|
<property name="icon-name">call-start-symbolic</property>
|
||||||
<property name="valign">center</property>
|
<property name="title" translatable="yes">No Recent Calls</property>
|
||||||
<property name="orientation">vertical</property>
|
|
||||||
<property name="spacing">12</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkImage">
|
|
||||||
<property name="visible">1</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>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="name">empty</property>
|
<property name="name">empty</property>
|
||||||
|
|
Loading…
Reference in a new issue