$OpenBSD: patch-plugins_eds_gtd-task-list-eds_c,v 1.1 2019/11/02 10:04:20 ajacoutot Exp $ Fix for evolution-data-server >= 3.34 (From upstream via Arch Linux). Index: plugins/eds/gtd-task-list-eds.c --- plugins/eds/gtd-task-list-eds.c.orig +++ plugins/eds/gtd-task-list-eds.c @@ -85,19 +85,19 @@ setup_parent_task (GtdTaskListEds *self, GtdTask *task) { ECalComponent *component; - icalcomponent *ical_comp; - icalproperty *property; + ICalComponent *ical_comp; + ICalProperty *property; GtdTask *parent_task; const gchar *parent_uid; component = gtd_task_eds_get_component (GTD_TASK_EDS (task)); ical_comp = e_cal_component_get_icalcomponent (component); - property = icalcomponent_get_first_property (ical_comp, ICAL_RELATEDTO_PROPERTY); + property = i_cal_component_get_first_property (ical_comp, I_CAL_RELATEDTO_PROPERTY); if (!property) return; - parent_uid = icalproperty_get_relatedto (property); + parent_uid = i_cal_property_get_relatedto (property); parent_task = gtd_task_list_get_task_by_id (GTD_TASK_LIST (self), parent_uid); if (parent_task) @@ -112,6 +112,8 @@ setup_parent_task (GtdTaskListEds *self, g_ptr_array_add (self->pending_subtasks, data); } + + g_object_unref (property); } static void @@ -161,8 +163,8 @@ on_view_objects_added_cb (ECalClientView *view, GtdTask *task; const gchar *uid; - component = e_cal_component_new_from_string (icalcomponent_as_ical_string (l->data)); - e_cal_component_get_uid (component, &uid); + component = e_cal_component_new_from_icalcomponent (i_cal_component_clone (l->data)); + uid = e_cal_component_get_uid (component); task = gtd_task_list_get_task_by_id (self, uid); @@ -211,8 +213,8 @@ on_view_objects_modified_cb (ECalClientView *view, GtdTask *task; const gchar *uid; - component = e_cal_component_new_from_string (icalcomponent_as_ical_string (l->data)); - e_cal_component_get_uid (component, &uid); + component = e_cal_component_new_from_icalcomponent (i_cal_component_clone (l->data)); + uid = e_cal_component_get_uid (component); task = gtd_task_list_get_task_by_id (self, uid); @@ -244,7 +246,7 @@ on_view_objects_removed_cb (ECalClientView *view, GtdTask *task; id = l->data; - task = gtd_task_list_get_task_by_id (self, id->uid); + task = gtd_task_list_get_task_by_id (self, e_cal_component_id_get_uid (id)); if (!task) continue;