From 5803d6023bd8ed25f5b69901a4bdea84eca5ecbc Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Mon, 31 Jan 2005 12:27:57 +0000 Subject: Fixes #64682 Added an X property to identify if the appointment is moved 2005-01-31 Chenthill Palanisamy Fixes #64682 * gui/e-calendar-view.c: (transfer_item_to): Added an X property to identify if the appointment is moved from another calendar. svn path=/trunk/; revision=28627 --- calendar/ChangeLog | 7 +++++++ calendar/gui/e-calendar-view.c | 10 ++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 7a5b3dcafc..c0df12b8cc 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2005-01-31 Chenthill Palanisamy + + Fixes #64682 + * gui/e-calendar-view.c: (transfer_item_to): Added an + X property to identify if the appointment is moved from + another calendar. + 2005-01-28 JP Rosevear Fixes #71452 diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index e7252c427b..0ca92240d0 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -1113,17 +1113,23 @@ transfer_item_to (ECalendarViewEvent *event, ECal *dest_client, gboolean remove_ const char *uid; char *new_uid; icalcomponent *orig_icalcomp; - + icalproperty *icalprop; + uid = icalcomponent_get_uid (event->comp_data->icalcomp); /* put the new object into the destination calendar */ if (e_cal_get_object (dest_client, uid, NULL, &orig_icalcomp, NULL)) { icalcomponent_free (orig_icalcomp); - + + if (!e_cal_modify_object (dest_client, event->comp_data->icalcomp, CALOBJ_MOD_ALL, NULL)) return; } else { orig_icalcomp = icalcomponent_new_clone (event->comp_data->icalcomp); + + icalprop = icalproperty_new_x ("1"); + icalproperty_set_x_name (icalprop, "X-EVOLUTION-MOVE-CALENDAR"); + icalcomponent_add_property (orig_icalcomp, icalprop); if (!remove_item) { /* change the UID to avoid problems with duplicated UIDs */ -- cgit v1.2.3