aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/itip-utils.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-07-13 02:56:07 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-07-13 02:56:07 +0800
commitc55a14f76a8ba5d564c8b203582e6d8480a7e4eb (patch)
tree53102e13b1686702e27a6958c25e50351595fc11 /calendar/gui/itip-utils.c
parent74042027db990bf5fc420a70076281221a30cfcf (diff)
downloadgsoc2013-evolution-c55a14f76a8ba5d564c8b203582e6d8480a7e4eb.tar.gz
gsoc2013-evolution-c55a14f76a8ba5d564c8b203582e6d8480a7e4eb.tar.zst
gsoc2013-evolution-c55a14f76a8ba5d564c8b203582e6d8480a7e4eb.zip
new proto
2001-07-12 JP Rosevear <jpr@ximian.com> * cal-util/cal-util.h: new proto * cal-util/cal-util.c (cal_util_new_top_level): standard place to get your top level calendar component * pcs/cal-backend-file.c (create_cal): use it * gui/itip-utils.c (itip_send_comp): ditto * gui/e-calendar-table.c (e_calendar_table_copy_clipboard): ditto svn path=/trunk/; revision=11053
Diffstat (limited to 'calendar/gui/itip-utils.c')
-rw-r--r--calendar/gui/itip-utils.c12
1 files changed, 1 insertions, 11 deletions
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]);