From 1b033e82e839d7ce9e11f0791974eee7791c52b6 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Sat, 27 Oct 2001 15:39:26 +0000 Subject: touch on lookup (check_for_slow_setting): write touched only if slow sync 2001-10-27 JP Rosevear * 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 --- calendar/conduits/todo/todo-conduit.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'calendar/conduits/todo/todo-conduit.c') 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; -- cgit v1.2.3