aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-12-08 04:20:20 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-12-08 04:20:20 +0800
commit5d72cc436798683b1dec3756866fbedf02f49032 (patch)
tree3096b2627ada9cf16ec9e02ebe43e91d3f82b8b8 /calendar/pcs
parent9d8e2d650430889cbc3efd680f699c922ca1db4c (diff)
downloadgsoc2013-evolution-5d72cc436798683b1dec3756866fbedf02f49032.tar.gz
gsoc2013-evolution-5d72cc436798683b1dec3756866fbedf02f49032.tar.zst
gsoc2013-evolution-5d72cc436798683b1dec3756866fbedf02f49032.zip
Create an empty cal component if the object has been deleted.
2000-12-07 JP Rosevear <jpr@helixcode.com> * pcs/cal-backend.c (cal_backend_compute_changes_foreach_key): Create an empty cal component if the object has been deleted. * idl/evolution-calendar.idl: Bit shift the change type constants properly svn path=/trunk/; revision=6843
Diffstat (limited to 'calendar/pcs')
-rw-r--r--calendar/pcs/cal-backend.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/calendar/pcs/cal-backend.c b/calendar/pcs/cal-backend.c
index 5b95f2b80a..ce9604e418 100644
--- a/calendar/pcs/cal-backend.c
+++ b/calendar/pcs/cal-backend.c
@@ -305,10 +305,15 @@ cal_backend_compute_changes_foreach_key (const char *key, gpointer data)
char *calobj = cal_backend_get_object (be_data->backend, key);
if (calobj == NULL) {
+ CalComponent *comp;
GNOME_Evolution_Calendar_CalObjChange *coc;
+ comp = cal_component_new ();
+ cal_component_set_new_vtype (comp, CAL_COMPONENT_TODO);
+ cal_component_set_uid (comp, key);
+
coc = GNOME_Evolution_Calendar_CalObjChange__alloc ();
- coc->calobj = CORBA_string_dup (calobj);
+ coc->calobj = CORBA_string_dup (cal_component_get_as_string (comp));
coc->type = GNOME_Evolution_Calendar_DELETED;
be_data->changes = g_list_prepend (be_data->changes, coc);
be_data->change_ids = g_list_prepend (be_data->change_ids, (gpointer) key);