aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-calendar-view.c10
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 <pchenthill@novell.com>
+
+ 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 <jpr@novell.com>
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 */