| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<requires lib="gtk" version="4.0"/> |
| 4 |
<requires lib="Adw" version="1.0"/> |
| 5 |
<template class="PaperClipDateRow" parent="AdwActionRow"> |
| 6 |
<child type="suffix"> |
| 7 |
<object class="GtkButton"> |
| 8 |
<property name="tooltip-text" translatable="yes">Remove Date</property> |
| 9 |
<property name="icon-name">entry-clear-symbolic</property> |
| 10 |
<property name="valign">center</property> |
| 11 |
<signal name="clicked" handler="on_clear_button_clicked"></signal> |
| 12 |
<style> |
| 13 |
<class name="flat"/> |
| 14 |
</style> |
| 15 |
</object> |
| 16 |
</child> |
| 17 |
|
| 18 |
<child type="suffix"> |
| 19 |
<object class="GtkMenuButton"> |
| 20 |
<property name="tooltip-text" translatable="yes">Show Calendar</property> |
| 21 |
<property name="valign">center</property> |
| 22 |
<style> |
| 23 |
<class name="flat"/> |
| 24 |
</style> |
| 25 |
|
| 26 |
<property name="popover"> |
| 27 |
<object class="GtkPopover" id="calendar_popover"> |
| 28 |
<child> |
| 29 |
<object class="GtkBox"> |
| 30 |
<property name="orientation">vertical</property> |
| 31 |
<property name="spacing">6</property> |
| 32 |
|
| 33 |
<child> |
| 34 |
<object class="GtkCalendar" id="calendar"> |
| 35 |
<signal name="day-selected" handler="on_day_selected"></signal> |
| 36 |
</object> |
| 37 |
</child> |
| 38 |
|
| 39 |
<child> |
| 40 |
<object class="GtkBox"> |
| 41 |
<property name="orientation">horizontal</property> |
| 42 |
<property name="homogeneous">true</property> |
| 43 |
<style> |
| 44 |
<class name="linked"/> |
| 45 |
</style> |
| 46 |
|
| 47 |
<child> |
| 48 |
<object class="GtkButton"> |
| 49 |
<property name="label" translatable="yes">Today</property> |
| 50 |
<signal name="clicked" handler="on_today_button_clicked"></signal> |
| 51 |
</object> |
| 52 |
</child> |
| 53 |
|
| 54 |
<child> |
| 55 |
<object class="GtkButton"> |
| 56 |
<property name="label" translatable="yes">Tomorrow</property> |
| 57 |
<signal name="clicked" handler="on_tomorrow_button_clicked"></signal> |
| 58 |
</object> |
| 59 |
</child> |
| 60 |
</object> |
| 61 |
</child> |
| 62 |
</object> |
| 63 |
</child> |
| 64 |
</object> |
| 65 |
</property> |
| 66 |
</object> |
| 67 |
</child> |
| 68 |
</template> |
| 69 |
</interface> |