recurrence: add a function to check equality of recurrences

The gcal_recurrence_is_equal function checks if two recurrences are
equal or not. When a user is trying to modify the recurrence-rules
of an already recurring event, this function tells us if the
recurrence-dialog should pop up or not.

This patch also removes some unused code.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
This commit is contained in:
Yash Singh
2017-07-13 13:32:49 -03:00
committed by Georges Basile Stavracas Neto
parent f58561fc4b
commit 59fcd01192
2 changed files with 42 additions and 6 deletions
+3
View File
@@ -67,6 +67,9 @@ GcalRecurrence* gcal_recurrence_copy (GcalRecurrence
void gcal_recurrence_free (GcalRecurrence *recur);
gboolean gcal_recurrence_is_equal (GcalRecurrence *recur1,
GcalRecurrence *recur2);
GcalRecurrence* gcal_recurrence_parse_recurrence_rules (ECalComponent *comp);
struct icalrecurrencetype* gcal_recurrence_to_rrule (GcalRecurrence *recur);