aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits/calendar/calendar-conduit.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-12-08 06:55:11 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-12-08 06:55:11 +0800
commit042281235aa1d98f24f7c7e7af69b1ba1b5d6ff0 (patch)
treeb6b771b5c02a63dcc483eeac177b686c00b9d8e6 /calendar/conduits/calendar/calendar-conduit.c
parenta791b442b56b3b807362eb711469c06b513a5f21 (diff)
downloadgsoc2013-evolution-042281235aa1d98f24f7c7e7af69b1ba1b5d6ff0.tar
gsoc2013-evolution-042281235aa1d98f24f7c7e7af69b1ba1b5d6ff0.tar.gz
gsoc2013-evolution-042281235aa1d98f24f7c7e7af69b1ba1b5d6ff0.tar.bz2
gsoc2013-evolution-042281235aa1d98f24f7c7e7af69b1ba1b5d6ff0.tar.lz
gsoc2013-evolution-042281235aa1d98f24f7c7e7af69b1ba1b5d6ff0.tar.xz
gsoc2013-evolution-042281235aa1d98f24f7c7e7af69b1ba1b5d6ff0.tar.zst
gsoc2013-evolution-042281235aa1d98f24f7c7e7af69b1ba1b5d6ff0.zip
Ugly hack for syncing until pcs can be altered (longer term)
2000-12-07 JP Rosevear <jpr@helixcode.com> * conduits/calendar/calendar-conduit.c (post_sync): Ugly hack for syncing until pcs can be altered (longer term) * conduits/todo/todo-conduit.c (post_sync): ditto svn path=/trunk/; revision=6849
Diffstat (limited to 'calendar/conduits/calendar/calendar-conduit.c')
-rw-r--r--calendar/conduits/calendar/calendar-conduit.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c
index 2ded9bec6d..10bf56c404 100644
--- a/calendar/conduits/calendar/calendar-conduit.c
+++ b/calendar/conduits/calendar/calendar-conduit.c
@@ -786,7 +786,8 @@ post_sync (GnomePilotConduit *conduit,
GnomePilotDBInfo *dbi,
ECalConduitContext *ctxt)
{
- gchar *filename;
+ GList *changed;
+ gchar *filename, *change_id;
LOG ("post_sync: Calendar Conduit v.%s", CONDUIT_VERSION);
LOG ("---------------------------------------------------------\n");
@@ -795,6 +796,13 @@ post_sync (GnomePilotConduit *conduit,
e_pilot_map_write (filename, ctxt->map);
g_free (filename);
+ /* FIX ME ugly hack - our changes musn't count, this does introduce
+ * a race condition if anyone changes a record elsewhere during sycnc
+ */
+ change_id = g_strdup_printf ("pilot-sync-evolution-calendar-%d", ctxt->cfg->pilot_id);
+ changed = cal_client_get_changes (ctxt->client, CALOBJ_TYPE_EVENT, change_id);
+ cal_client_change_list_free (changed);
+
return 0;
}