diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-08-29 07:17:08 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-08-29 07:17:08 +0800 |
commit | a4789a176c9b256e018e31ac363ee9847da55500 (patch) | |
tree | 36d28ac1684ef1c0c0bce859760d71aee4f9bdc1 /calendar/cal-util/cal-recur.c | |
parent | b807448dce5d356dcd1b4ea6133abf104564e44b (diff) | |
download | gsoc2013-evolution-a4789a176c9b256e018e31ac363ee9847da55500.tar.gz gsoc2013-evolution-a4789a176c9b256e018e31ac363ee9847da55500.tar.zst gsoc2013-evolution-a4789a176c9b256e018e31ac363ee9847da55500.zip |
We no longer need time_from_icaltimetype as libical has the API for this
2000-08-28 JP Rosevear <jpr@helixcode.com>
* cal-util/timeutil.h: We no longer need time_from_icaltimetype
as libical has the API for this
* cal-util/timeutil.c: ditto
* cal-util/cal-recur.c: Replace time_from_icaltimetype with
icaltime_as_timet
* gui/calendar-model.c: ditto
* gui/event-editor.c: ditto
* gui/gnome-cal.c: ditto
svn path=/trunk/; revision=5090
Diffstat (limited to 'calendar/cal-util/cal-recur.c')
-rw-r--r-- | calendar/cal-util/cal-recur.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/calendar/cal-util/cal-recur.c b/calendar/cal-util/cal-recur.c index 164ffdbfc6..2fad53ca63 100644 --- a/calendar/cal-util/cal-recur.c +++ b/calendar/cal-util/cal-recur.c @@ -483,7 +483,7 @@ cal_recur_generate_instances (CalComponent *comp, goto out; } - dtstart_time = time_from_icaltimetype (*dtstart.value); + dtstart_time = icaltime_as_timet (*dtstart.value); cal_component_get_rrule_list (comp, &rrules); cal_component_get_rdate_list (comp, &rdates); @@ -497,7 +497,7 @@ cal_recur_generate_instances (CalComponent *comp, time_t dtend_time; if (dtend.value) - dtend_time = time_from_icaltimetype (*dtend.value); + dtend_time = icaltime_as_timet (*dtend.value); else dtend_time = time_day_end (dtstart_time); @@ -640,7 +640,7 @@ cal_recur_from_icalrecurrencetype (struct icalrecurrencetype *ir) /* FIXME: we don't deal with ir->count. Also, how does libical * distinguish between n-occurrences and until-some-date rules? */ - r->enddate = time_from_icaltimetype (ir->until); + r->enddate = icaltime_as_timet (ir->until); switch (ir->week_start) { case ICAL_MONDAY_WEEKDAY: @@ -787,7 +787,7 @@ generate_instances_for_year (CalComponent *comp, /* FIXME: this only deals with the start time */ period = elem->data; - t = time_from_icaltimetype (period->start); + t = icaltime_as_timet (period->start); cal_object_time_from_time (&cotime, t); g_array_append_val (occs, cotime); @@ -818,7 +818,7 @@ generate_instances_for_year (CalComponent *comp, /* FIXME: this only deals with the start time */ period = elem->data; - t = time_from_icaltimetype (period->start); + t = icaltime_as_timet (period->start); cal_object_time_from_time (&cotime, t); g_array_append_val (ex_occs, cotime); |