aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-05-14 20:09:12 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-05-14 20:09:12 +0800
commit951a1430928e5df1cfe053ce23e719ab46592df8 (patch)
tree052c1730d54692bfc58b83652aef6a4e4b9a1530 /calendar/gui/e-cal-model.c
parent2e5b3b9ff9827b040ab4bb4dec2490cbe1e577cd (diff)
downloadgsoc2013-evolution-951a1430928e5df1cfe053ce23e719ab46592df8.tar.gz
gsoc2013-evolution-951a1430928e5df1cfe053ce23e719ab46592df8.tar.zst
gsoc2013-evolution-951a1430928e5df1cfe053ce23e719ab46592df8.zip
use e_cal_generate_instances_for_object instead of
2004-05-14 Rodrigo Moya <rodrigo@ximian.com> * gui/e-day-view.c (process_component): * gui/e-week-view.c (process_component): * gui/gnome-cal.c (gnome_calendar_purge): * gui/tag-calendar.c (tag_calendar_by_comp): * gui/e-cal-model.c (e_cal_model_generate_instances): use e_cal_generate_instances_for_object instead of e_cal_recur_generate_instances. svn path=/trunk/; revision=25905
Diffstat (limited to 'calendar/gui/e-cal-model.c')
-rw-r--r--calendar/gui/e-cal-model.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index 8de47998f3..26d6d5ec7b 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -1896,15 +1896,9 @@ e_cal_model_generate_instances (ECalModel *model, time_t start, time_t end,
n = e_table_model_row_count (E_TABLE_MODEL (model));
for (i = 0; i < n; i ++) {
ECalModelComponent *comp_data = e_cal_model_get_component_at (model, i);
- ECalComponent *comp = e_cal_component_new ();
- e_cal_component_set_icalcomponent (comp, icalcomponent_new_clone (comp_data->icalcomp));
mdata.comp_data = comp_data;
mdata.cb_data = cb_data;
- e_cal_recur_generate_instances (comp, start, end,
- cb, &mdata,
- e_cal_resolve_tzid_cb, comp_data->client,
- e_cal_model_get_timezone (model));
- g_object_unref (comp);
+ e_cal_generate_instances_for_object (comp_data->client, comp_data->icalcomp, start, end, cb, &mdata);
}
}