aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/cal-component.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/cal-util/cal-component.c')
-rw-r--r--calendar/cal-util/cal-component.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c
index a618e0ef4b..6101c3cd63 100644
--- a/calendar/cal-util/cal-component.c
+++ b/calendar/cal-util/cal-component.c
@@ -1090,6 +1090,20 @@ cal_component_rescan (CalComponent *comp)
ensure_mandatory_properties (comp);
}
+void
+cal_component_strip_errors (CalComponent *comp)
+{
+ CalComponentPrivate *priv;
+ icalproperty *prop;
+
+ g_return_if_fail (comp != NULL);
+ g_return_if_fail (IS_CAL_COMPONENT (comp));
+
+ priv = comp->priv;
+
+ icalcomponent_strip_errors (priv->icalcomp);
+}
+
/**
* cal_component_get_vtype:
* @comp: A calendar component object.
@@ -1276,6 +1290,19 @@ cal_component_commit_sequence (CalComponent *comp)
priv->need_sequence_inc = FALSE;
}
+void
+cal_component_abort_sequence (CalComponent *comp)
+{
+ CalComponentPrivate *priv;
+
+ g_return_if_fail (comp != NULL);
+ g_return_if_fail (IS_CAL_COMPONENT (comp));
+
+ priv = comp->priv;
+
+ priv->need_sequence_inc = FALSE;
+}
+
/**
* cal_component_get_uid:
* @comp: A calendar component object.
@@ -5212,3 +5239,4 @@ cal_component_event_dates_match (CalComponent *comp1,
return retval;
}
+