diff options
author | Chenthill Palanisamy <pchenthill@novell.com> | 2005-01-31 20:27:57 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-01-31 20:27:57 +0800 |
commit | 5803d6023bd8ed25f5b69901a4bdea84eca5ecbc (patch) | |
tree | 96a207f3f1108633645fae6f471afb9789d15ec4 | |
parent | 78af3d2aebe3502b198079cadb56d2fda2cffe4b (diff) | |
download | gsoc2013-evolution-5803d6023bd8ed25f5b69901a4bdea84eca5ecbc.tar gsoc2013-evolution-5803d6023bd8ed25f5b69901a4bdea84eca5ecbc.tar.gz gsoc2013-evolution-5803d6023bd8ed25f5b69901a4bdea84eca5ecbc.tar.bz2 gsoc2013-evolution-5803d6023bd8ed25f5b69901a4bdea84eca5ecbc.tar.lz gsoc2013-evolution-5803d6023bd8ed25f5b69901a4bdea84eca5ecbc.tar.xz 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
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | 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 <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 */ |