Port to libecal-2.0
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/merge_requests/70
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user