date-selector: use GDateTime internally

Using a GDateTime improves consistency with the
other components (ideally, we'll move completely
to GDateTime) and simplifies the code.

This commit adds a new property GcalDateSelector::date
and adapts the API to use GDateTime.
This commit is contained in:
Georges Basile Stavracas Neto
2016-02-14 12:17:37 -02:00
parent 2775012346
commit afe8def60c
4 changed files with 152 additions and 137 deletions
+2 -2
View File
@@ -229,7 +229,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="sensitive" bind-source="GcalEditDialog" bind-property="writable" bind-flags="default" />
<signal name="modified" handler="update_date" object="GcalEditDialog" swapped="no"/>
<signal name="notify::date" handler="update_date" object="GcalEditDialog" swapped="yes"/>
</object>
<packing>
<property name="position">1</property>
@@ -265,7 +265,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="sensitive" bind-source="GcalEditDialog" bind-property="writable" bind-flags="default" />
<signal name="modified" handler="update_date" object="GcalEditDialog" swapped="no"/>
<signal name="notify::date" handler="update_date" object="GcalEditDialog" swapped="yes"/>
</object>
<packing>
<property name="position">1</property>