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;
|
||||
|
||||
@@ -407,8 +407,8 @@ add_event_to_day_array (GcalYearView *year_view,
|
||||
static void
|
||||
update_sidebar (GcalYearView *year_view)
|
||||
{
|
||||
g_autofree icaltimetype *start_icaldatetime = NULL;
|
||||
g_autofree icaltimetype *end_icaldatetime = NULL;
|
||||
g_autoptr (ICalTime) start_icaldatetime = NULL;
|
||||
g_autoptr (ICalTime) end_icaldatetime = NULL;
|
||||
GcalManager *manager;
|
||||
GtkWidget *child_widget;
|
||||
GList *events, *l;
|
||||
@@ -1981,10 +1981,10 @@ gcal_year_view_component_changed (ECalDataModelSubscriber *subscriber,
|
||||
|
||||
id = e_cal_component_get_id (comp);
|
||||
|
||||
gcal_year_view_component_removed (subscriber, client, id->uid, id->rid);
|
||||
gcal_year_view_component_removed (subscriber, client, e_cal_component_id_get_uid (id), e_cal_component_id_get_rid (id));
|
||||
gcal_year_view_component_added (subscriber, client, comp);
|
||||
|
||||
g_clear_pointer (&id, e_cal_component_free_id);
|
||||
g_clear_pointer (&id, e_cal_component_id_free);
|
||||
|
||||
GCAL_EXIT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user