From 1c61950527e07b6f0343f0c1a9ecf7d043b7873e Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Wed, 24 Oct 2001 21:02:43 +0000 Subject: when iterating over the subcomponents, use 'subcomp' rather than 2001-10-24 Damon Chaplin * pcs/cal-backend-file.c (cal_backend_file_update_objects): when iterating over the subcomponents, use 'subcomp' rather than 'icalcomp'. That meant it wasn't working at all well when an entire VCALENDAR was passed in. * cal-util/cal-component.c: handle DURATION property used instead of DTEND or DUE. In cal_component_get_dtend/due we will return DTSTART + DURATION if necessary. In set_dtend/due we remove any DURATION property. Fixes bug #11262. * gui/e-meeting-model.c (build_etable): * gui/e-calendar-table.c (e_calendar_table_init): use U_ for the ECellCombo popdown strings, as it expects UTF-8 strings. svn path=/trunk/; revision=13992 --- calendar/pcs/cal-backend-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calendar/pcs/cal-backend-file.c') diff --git a/calendar/pcs/cal-backend-file.c b/calendar/pcs/cal-backend-file.c index adf323023a..139db949f8 100644 --- a/calendar/pcs/cal-backend-file.c +++ b/calendar/pcs/cal-backend-file.c @@ -1751,14 +1751,14 @@ cal_backend_file_update_objects (CalBackend *backend, const char *calobj) while (subcomp) { /* We ignore anything except VEVENT, VTODO and VJOURNAL components. */ - icalcomponent_kind child_kind = icalcomponent_isa (icalcomp); + icalcomponent_kind child_kind = icalcomponent_isa (subcomp); if (child_kind == ICAL_VEVENT_COMPONENT || child_kind == ICAL_VTODO_COMPONENT || child_kind == ICAL_VJOURNAL_COMPONENT) { const char *comp_uid; comp_uid = cal_backend_file_update_object (cbfile, - icalcomp); + subcomp); if (comp_uid) { /* We add a copy of the UID to a list, so we can emit notification signals later. We do -- cgit v1.2.3