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
+3 -8
View File
@@ -30,15 +30,10 @@ G_DECLARE_FINAL_TYPE (GcalDateSelector, gcal_date_selector, GCAL, DATE_SELECTOR,
GtkWidget* gcal_date_selector_new (void);
void gcal_date_selector_set_date (GcalDateSelector *selector,
gint day,
gint month,
gint year);
GDateTime* gcal_date_selector_get_date (GcalDateSelector *selector);
void gcal_date_selector_get_date (GcalDateSelector *selector,
gint *day,
gint *month,
gint *year);
void gcal_date_selector_set_date (GcalDateSelector *selector,
GDateTime *date);
G_END_DECLS