aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/calendar.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/calendar.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/calendar.c')
-rw-r--r--calendar/calendar.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/calendar/calendar.c b/calendar/calendar.c
index ebece3aadc..9f9ef4dc51 100644
--- a/calendar/calendar.c
+++ b/calendar/calendar.c
@@ -36,6 +36,8 @@ calendar_add_object (Calendar *cal, iCalObject *obj)
switch (obj->type){
case ICAL_EVENT:
cal->events = g_list_prepend (cal->events, obj);
+ if (obj->recur)
+ cal->recur = g_list_prepend (cal->recur, obj);
break;
case ICAL_TODO:
@@ -60,6 +62,8 @@ calendar_remove_object (Calendar *cal, iCalObject *obj)
switch (obj->type){
case ICAL_EVENT:
cal->events = g_list_remove (cal->events, obj);
+ if (obj->recur)
+ cal->recur = g_list_remove (cal->recur, obj);
break;
case ICAL_TODO:
@@ -107,7 +111,7 @@ ice (time_t t)
return buffer;
}
-static GList *
+GList *
calendar_get_objects_in_range (GList *objects, time_t start, time_t end, GCompareFunc sort_func)
{
GList *new_events = 0;