Port to libecal-2.0

Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/merge_requests/70
This commit is contained in:
Milan Crha
2019-05-17 21:58:55 +02:00
parent 9357db6e23
commit a0cae4356a
19 changed files with 732 additions and 486 deletions
+5 -2
View File
@@ -295,8 +295,8 @@ reposition_popover (GcalMonthPopover *self,
static void
update_event_list (GcalMonthPopover *self)
{
g_autofree icaltimetype *start = NULL;
g_autofree icaltimetype *end = NULL;
g_autoptr (ICalTime) start = NULL;
g_autoptr (ICalTime) end = NULL;
g_autoptr (GDateTime) start_dt = NULL;
g_autoptr (GDateTime) end_dt = NULL;
g_autoptr (GList) events = NULL;
@@ -322,6 +322,9 @@ update_event_list (GcalMonthPopover *self)
events = gcal_manager_get_events (gcal_context_get_manager (self->context), start, end);
g_clear_object (&start);
g_clear_object (&end);
for (l = events; l; l = l->next)
{
g_autoptr (GDateTime) event_start = NULL;