diff options
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-itip-control.c | 5 | ||||
-rw-r--r-- | calendar/gui/e-meeting-edit.c | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index e545f326be..d3a6a35311 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -592,6 +592,7 @@ pstream_load (BonoboPersistStream *ps, const Bonobo_Stream stream, { EItipControlPrivate *priv = data; gint pos, length, length2; + icalcompiter iter; icalcomponent_kind comp_kind; char message[256]; @@ -617,8 +618,8 @@ pstream_load (BonoboPersistStream *ps, const Bonobo_Stream stream, return; } - priv->comp = icalcomponent_get_first_component (priv->main_comp, - ICAL_ANY_COMPONENT); + iter = icalcomponent_begin_component (priv->main_comp, ICAL_ANY_COMPONENT); + priv->comp = icalcompiter_deref (&iter); #if 0 { diff --git a/calendar/gui/e-meeting-edit.c b/calendar/gui/e-meeting-edit.c index bdacb7514b..80202fd804 100644 --- a/calendar/gui/e-meeting-edit.c +++ b/calendar/gui/e-meeting-edit.c @@ -949,9 +949,12 @@ e_meeting_edit (EMeetingEditor *editor) priv->organizer_entry = glade_xml_get_widget (priv->xml, "organizer_entry"); - if (icalcomponent_isa (priv->icalcomp) != ICAL_VEVENT_COMPONENT) - priv->vevent = icalcomponent_get_first_component(priv->icalcomp,ICAL_VEVENT_COMPONENT); - else + if (icalcomponent_isa (priv->icalcomp) != ICAL_VEVENT_COMPONENT) { + icalcompiter iter; + + iter = icalcomponent_begin_component (priv->icalcomp, ICAL_VEVENT_COMPONENT); + priv->vevent = icalcompiter_deref (&iter); + } else priv->vevent = priv->icalcomp; g_assert (priv->vevent != NULL); |