94 lines
3.4 KiB
XML
94 lines
3.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="GcalEventWidget" parent="GtkWidget">
|
|
|
|
<!-- Drag Source -->
|
|
<child>
|
|
<object class="GtkDragSource" id="drag_source">
|
|
<signal name="prepare" handler="on_drag_source_prepare_cb" object="GcalEventWidget" swapped="no" />
|
|
<signal name="begin" handler="on_drag_source_begin_cb" object="GcalEventWidget" swapped="no" />
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Click Gesture -->
|
|
<child>
|
|
<object class="GtkGestureClick">
|
|
<property name="button">1</property>
|
|
<signal name="pressed" handler="on_click_gesture_pressed_cb" object="GcalEventWidget" swapped="no" />
|
|
<signal name="released" handler="on_click_gesture_release_cb" object="GcalEventWidget" swapped="no" />
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Main Stack -->
|
|
<child>
|
|
<object class="GtkStack" id="stack">
|
|
<property name="hexpand">False</property>
|
|
<property name="margin-top">1</property>
|
|
<property name="margin-bottom">1</property>
|
|
<property name="margin-start">6</property>
|
|
<property name="margin-end">4</property>
|
|
<property name="hhomogeneous">False</property>
|
|
<property name="vhomogeneous">False</property>
|
|
|
|
<!-- Horizontal page -->
|
|
<child>
|
|
<object class="GtkBox" id="horizontal_box">
|
|
<property name="spacing">4</property>
|
|
<child>
|
|
<object class="GtkBox" id="color_box">
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<property name="width-request">16</property>
|
|
<property name="height-request">16</property>
|
|
<style>
|
|
<class name="icon-box" />
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="summary_label">
|
|
<property name="hexpand">True</property>
|
|
<property name="xalign">0.0</property>
|
|
<property name="ellipsize">end</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="hour_label">
|
|
<style>
|
|
<class name="dim-label" />
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Vertical page -->
|
|
<child>
|
|
<object class="GtkBox" id="vertical_box">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" bind-source="hour_label" bind-property="label" bind-flags="default" />
|
|
<property name="xalign">0.0</property>
|
|
<style>
|
|
<class name="dim-label" />
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" bind-source="summary_label" bind-property="label" bind-flags="default" />
|
|
<property name="wrap">True</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="xalign">0.0</property>
|
|
<property name="ellipsize">end</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|