diff options
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-calendar-table.c | 2 | ||||
-rw-r--r-- | calendar/gui/itip-utils.c | 12 |
2 files changed, 2 insertions, 12 deletions
diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c index ef87a9167a..e24f1d3d2b 100644 --- a/calendar/gui/e-calendar-table.c +++ b/calendar/gui/e-calendar-table.c @@ -788,7 +788,7 @@ e_calendar_table_copy_clipboard (ECalendarTable *cal_table) } /* create temporary VCALENDAR object */ - cal_table->tmp_vcal = icalcomponent_new (ICAL_VCALENDAR_COMPONENT); + cal_table->tmp_vcal = cal_util_new_top_level (); etable = e_table_scrolled_get_table (E_TABLE_SCROLLED (cal_table->etable)); e_table_selected_row_foreach (etable, copy_row_cb, cal_table); diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 3108264163..f755b13558 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -275,17 +275,7 @@ itip_send_comp (CalComponentItipMethod method, CalComponent *comp) icalvalue *value; gchar *ical_string; - icomp = icalcomponent_new (ICAL_VCALENDAR_COMPONENT); - - prop = icalproperty_new (ICAL_PRODID_PROPERTY); - value = icalvalue_new_text ("-//Ximian/Evolution//EN"); - icalproperty_set_value (prop, value); - icalcomponent_add_property (icomp, prop); - - prop = icalproperty_new (ICAL_VERSION_PROPERTY); - value = icalvalue_new_text ("2.0"); - icalproperty_set_value (prop, value); - icalcomponent_add_property (icomp, prop); + icomp = cal_util_new_top_level (); prop = icalproperty_new (ICAL_METHOD_PROPERTY); value = icalvalue_new_method (itip_methods_enum[method]); |