aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/calobj.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-04-15 15:59:09 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-15 15:59:09 +0800
commitf89cf24d2093c9982e461a2478d0acb4eeacc408 (patch)
treec87e7b2f1ea8090de832c0930c7a675044d0816b /calendar/cal-util/calobj.c
parent3ef4dcf9bbf11bc5b1a83bc4360733e730411f7c (diff)
downloadgsoc2013-evolution-f89cf24d2093c9982e461a2478d0acb4eeacc408.tar
gsoc2013-evolution-f89cf24d2093c9982e461a2478d0acb4eeacc408.tar.gz
gsoc2013-evolution-f89cf24d2093c9982e461a2478d0acb4eeacc408.tar.bz2
gsoc2013-evolution-f89cf24d2093c9982e461a2478d0acb4eeacc408.tar.lz
gsoc2013-evolution-f89cf24d2093c9982e461a2478d0acb4eeacc408.tar.xz
gsoc2013-evolution-f89cf24d2093c9982e461a2478d0acb4eeacc408.tar.zst
gsoc2013-evolution-f89cf24d2093c9982e461a2478d0acb4eeacc408.zip
Year view marks ranges of new dates (on update view). Recurrence iterator
Year view marks ranges of new dates (on update view). Recurrence iterator functions are here now (clap, clap, clap). Microsoft Outlook's days are counted. Miguel. svn path=/trunk/; revision=139
Diffstat (limited to 'calendar/cal-util/calobj.c')
-rw-r--r--calendar/cal-util/calobj.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c
index f02feaf7a1..7e5f535189 100644
--- a/calendar/cal-util/calobj.c
+++ b/calendar/cal-util/calobj.c
@@ -99,7 +99,13 @@ ical_object_destroy (iCalObject *ico)
lfree_if_defined (ico->resources);
lfree_if_defined (ico->related);
lfree_if_defined (ico->attach);
-
+
+ /* Alarms */
+ g_free (ico->dalarm.data);
+ g_free (ico->palarm.data);
+ g_free (ico->malarm.data);
+ g_free (ico->aalarm.data);
+
g_free (ico);
}
@@ -670,3 +676,13 @@ ical_object_to_vobject (iCalObject *ical)
/* FIXME: alarms */
return o;
}
+
+void
+ical_foreach (GList *events, iCalObjectFn fn, void *closure)
+{
+ for (; events; events = events->next){
+ iCalObject *ical = events->data;
+
+ (*fn) (ical, ical->dtstart, ical->dtend, closure);
+ }
+}