aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-04-12 04:08:30 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-04-12 04:08:30 +0800
commit414da9ba352b822a7c8071a34b48939395bab632 (patch)
tree2eda1a2ed0c9ef1dbc94a766a50a9e492937e28b
parenteb1494bd23b9f1922bdddb3bc20b766b517c03a5 (diff)
downloadgsoc2013-evolution-414da9ba352b822a7c8071a34b48939395bab632.tar.gz
gsoc2013-evolution-414da9ba352b822a7c8071a34b48939395bab632.tar.zst
gsoc2013-evolution-414da9ba352b822a7c8071a34b48939395bab632.zip
prepend to both changes and change_ids when different and mark as
2001-04-11 JP Rosevear <jpr@ximian.com> * pcs/cal-backend-file.c (cal_backend_file_compute_changes): prepend to both changes and change_ids when different and mark as modified, not added svn path=/trunk/; revision=9246
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/pcs/cal-backend-file.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 1c31d992b5..74b9069362 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-11 JP Rosevear <jpr@ximian.com>
+
+ * pcs/cal-backend-file.c (cal_backend_file_compute_changes):
+ prepend to both changes and change_ids when different and mark as
+ modified, not added
+
2001-04-11 Christopher James Lahey <clahey@ximian.com>
* gui/calendar-model.c (calendar_model_append_row): Fix this to
diff --git a/calendar/pcs/cal-backend-file.c b/calendar/pcs/cal-backend-file.c
index a624db9f12..1267f44e3f 100644
--- a/calendar/pcs/cal-backend-file.c
+++ b/calendar/pcs/cal-backend-file.c
@@ -1049,8 +1049,8 @@ cal_backend_file_compute_changes (CalBackend *backend, CalObjType type, const ch
case E_DBHASH_STATUS_DIFFERENT:
coc = GNOME_Evolution_Calendar_CalObjChange__alloc ();
coc->calobj = CORBA_string_dup (calobj);
- coc->type = GNOME_Evolution_Calendar_ADDED;
- changes = g_list_append (changes, coc);
+ coc->type = GNOME_Evolution_Calendar_MODIFIED;
+ changes = g_list_prepend (changes, coc);
change_ids = g_list_prepend (change_ids, uid);
break;
}