From 4a06c4e5e314629911a99e875194d1e72ff74bc5 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Tue, 11 May 2004 14:29:34 +0000 Subject: use/set the DUE date, not the DTEND date. 2004-05-11 Rodrigo Moya * gui/e-cal-model-tasks.c (set_due): use/set the DUE date, not the DTEND date. svn path=/trunk/; revision=25854 --- calendar/gui/e-cal-model-tasks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c index fb958cbe89..7c0fb08638 100644 --- a/calendar/gui/e-cal-model-tasks.c +++ b/calendar/gui/e-cal-model-tasks.c @@ -545,7 +545,7 @@ set_due (ECalModelComponent *comp_data, const void *value) icalparameter *param; const char *tzid; - prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_DTEND_PROPERTY); + prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_DUE_PROPERTY); if (prop) param = icalproperty_get_first_parameter (prop, ICAL_TZID_PARAMETER); else @@ -570,9 +570,9 @@ set_due (ECalModelComponent *comp_data, const void *value) dv->tt.is_utc = 0; if (prop) { - icalproperty_set_dtend (prop, dv->tt); + icalproperty_set_due (prop, dv->tt); } else { - prop = icalproperty_new_dtend (dv->tt); + prop = icalproperty_new_due (dv->tt); icalcomponent_add_property (comp_data->icalcomp, prop); } -- cgit