diff options
author | JP Rosevear <jpr@ximian.com> | 2001-10-27 23:39:26 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-10-27 23:39:26 +0800 |
commit | 1b033e82e839d7ce9e11f0791974eee7791c52b6 (patch) | |
tree | 8e4791a746821847864e6de0a2e4a9694020fa71 /calendar/conduits/todo | |
parent | 5944eda9faeea50696b6d7da5ac04a952752ad58 (diff) | |
download | gsoc2013-evolution-1b033e82e839d7ce9e11f0791974eee7791c52b6.tar gsoc2013-evolution-1b033e82e839d7ce9e11f0791974eee7791c52b6.tar.gz gsoc2013-evolution-1b033e82e839d7ce9e11f0791974eee7791c52b6.tar.bz2 gsoc2013-evolution-1b033e82e839d7ce9e11f0791974eee7791c52b6.tar.lz gsoc2013-evolution-1b033e82e839d7ce9e11f0791974eee7791c52b6.tar.xz gsoc2013-evolution-1b033e82e839d7ce9e11f0791974eee7791c52b6.tar.zst gsoc2013-evolution-1b033e82e839d7ce9e11f0791974eee7791c52b6.zip |
touch on lookup (check_for_slow_setting): write touched only if slow sync
2001-10-27 JP Rosevear <jpr@ximian.com>
* conduits/todo/todo-conduit.c (local_record_from_comp): touch on
lookup
(check_for_slow_setting): write touched only if slow sync
(match): touch on lookup
* conduits/calendar/calendar-conduit.c (local_record_from_comp):
touch the record on lookup
(check_for_slow_setting): write touched only if slow sync
(pre_sync): don't touch on lookup
(match): touch on lookup
svn path=/trunk/; revision=14210
Diffstat (limited to 'calendar/conduits/todo')
-rw-r--r-- | calendar/conduits/todo/todo-conduit.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c index 1dac791862..91252a9bbf 100644 --- a/calendar/conduits/todo/todo-conduit.c +++ b/calendar/conduits/todo/todo-conduit.c @@ -405,7 +405,7 @@ local_record_from_comp (EToDoLocalRecord *local, CalComponent *comp, EToDoCondui gtk_object_ref (GTK_OBJECT (comp)); cal_component_get_uid (local->comp, &uid); - local->local.ID = e_pilot_map_lookup_pid (ctxt->map, uid); + local->local.ID = e_pilot_map_lookup_pid (ctxt->map, uid, TRUE); compute_status (ctxt, local, uid); @@ -658,10 +658,12 @@ check_for_slow_setting (GnomePilotConduit *c, EToDoConduitContext *ctxt) if (map_count == 0) gnome_pilot_conduit_standard_set_slow (conduit, TRUE); - if (gnome_pilot_conduit_standard_get_slow (conduit)) + if (gnome_pilot_conduit_standard_get_slow (conduit)) { + ctxt->map->write_touched_only = TRUE; LOG (" doing slow sync\n"); - else + } else { LOG (" doing fast sync\n"); + } } /* Pilot syncing callbacks */ @@ -1054,7 +1056,7 @@ match (GnomePilotConduitSyncAbs *conduit, g_return_val_if_fail (remote != NULL, -1); *local = NULL; - uid = e_pilot_map_lookup_uid (ctxt->map, remote->ID); + uid = e_pilot_map_lookup_uid (ctxt->map, remote->ID, TRUE); if (!uid) return 0; |