date-chooser-day: Use a template

This makes the widget easier to maintain.
This commit is contained in:
Adrien Plazas
2022-06-16 09:29:16 +02:00
parent f9c4501d6c
commit a58fa3deb8
3 changed files with 27 additions and 17 deletions
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<interface>
<template class="GcalDateChooserDay" parent="GtkButton">
<property name="halign">center</property>
<property name="valign">center</property>
<style>
<class name="circular"/>
<class name="day"/>
<class name="flat"/>
</style>
<child>
<object class="GtkLabel" id="label">
<property name="halign">center</property>
<property name="hexpand">True</property>
<property name="valign">center</property>
<property name="vexpand">True</property>
</object>
</child>
</template>
</interface>