aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2005-01-31 20:27:57 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-01-31 20:27:57 +0800
commit5803d6023bd8ed25f5b69901a4bdea84eca5ecbc (patch)
tree96a207f3f1108633645fae6f471afb9789d15ec4 /calendar/gui
parent78af3d2aebe3502b198079cadb56d2fda2cffe4b (diff)
downloadgsoc2013-evolution-5803d6023bd8ed25f5b69901a4bdea84eca5ecbc.tar.gz
gsoc2013-evolution-5803d6023bd8ed25f5b69901a4bdea84eca5ecbc.tar.zst
gsoc2013-evolution-5803d6023bd8ed25f5b69901a4bdea84eca5ecbc.zip
Fixes #64682 Added an X property to identify if the appointment is moved
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. svn path=/trunk/; revision=28627
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-calendar-view.c10
1 files changed, 8 insertions, 2 deletions
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 */