From ee5fca52e1821c11907c7feba961ab97d32050dd Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 12 Sep 2000 21:18:38 +0000 Subject: Hack to compile for distcheck. 2000-09-12 JP Rosevear * conduits/calendar/calendar-conduit.c: Hack to compile for distcheck. * conduits/calendar/calendar-conduit.h: Remove calobj.h dependency svn path=/trunk/; revision=5390 --- calendar/ChangeLog | 6 +++++ calendar/conduits/calendar/calendar-conduit.c | 38 +++++++++++++-------------- calendar/conduits/calendar/calendar-conduit.h | 1 - 3 files changed, 25 insertions(+), 20 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index c825ccc5d7..7e2c6aae76 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2000-09-12 JP Rosevear + + * conduits/calendar/calendar-conduit.c: Hack to compile for distcheck. + + * conduits/calendar/calendar-conduit.h: Remove calobj.h dependency + 2000-09-12 JP Rosevear * pcs/cal-backend-file.c (cal_backend_file_load): Use g_int_* diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c index 30cee2d293..4771a96f0b 100644 --- a/calendar/conduits/calendar/calendar-conduit.c +++ b/calendar/conduits/calendar/calendar-conduit.c @@ -310,17 +310,17 @@ local_record_from_icalobject (GCalLocalRecord *local, LOG ("local->Id = %ld [%s], status = %d", local->local.ID,obj->summary,local->ical->pilot_status); */ - switch (pilot_status) { - case ICAL_PILOT_SYNC_NONE: - local->local.attr = GnomePilotRecordNothing; - break; - case ICAL_PILOT_SYNC_MOD: - local->local.attr = GnomePilotRecordModified; - break; - case ICAL_PILOT_SYNC_DEL: - local->local.attr = GnomePilotRecordDeleted; - break; - } +/* switch (pilot_status) { */ +/* case ICAL_PILOT_SYNC_NONE: */ +/* local->local.attr = GnomePilotRecordNothing; */ +/* break; */ +/* case ICAL_PILOT_SYNC_MOD: */ +/* local->local.attr = GnomePilotRecordModified; */ +/* break; */ +/* case ICAL_PILOT_SYNC_DEL: */ +/* local->local.attr = GnomePilotRecordDeleted; */ +/* break; */ +/* } */ /* Records without a pilot_id are new */ if (local->local.ID == 0) @@ -690,7 +690,7 @@ update_record (GnomePilotConduitStandardAbs *conduit, //obj->pilot_id = remote->ID; //obj->pilot_status = ICAL_PILOT_SYNC_NONE; cal_component_set_pilot_id (obj, remote->ID); - cal_component_set_pilot_status (obj, ICAL_PILOT_SYNC_NONE); +// cal_component_set_pilot_status (obj, ICAL_PILOT_SYNC_NONE); } else { CalComponent *new_obj; @@ -709,8 +709,8 @@ update_record (GnomePilotConduitStandardAbs *conduit, cal_component_get_pilot_id (obj, &pilot_id); update_calendar_entry_in_repository (conduit, obj, ctxt); - cal_client_update_pilot_id (ctxt->client, (char *) uid, pilot_id, - ICAL_PILOT_SYNC_NONE); +/* cal_client_update_pilot_id (ctxt->client, (char *) uid, pilot_id, */ +/* ICAL_PILOT_SYNC_NONE); */ } /* @@ -1068,7 +1068,7 @@ set_status (GnomePilotConduitStandardAbs *conduit, GCalConduitContext *ctxt) { gboolean success; - iCalPilotState new_state = ICAL_PILOT_SYNC_NONE; +// iCalPilotState new_state = ICAL_PILOT_SYNC_NONE; printf ("set_status: %s status is now '%s'\n", print_local (local), @@ -1081,13 +1081,13 @@ set_status (GnomePilotConduitStandardAbs *conduit, switch(status) { case GnomePilotRecordPending: case GnomePilotRecordNothing: - new_state = ICAL_PILOT_SYNC_NONE; +// new_state = ICAL_PILOT_SYNC_NONE; break; case GnomePilotRecordDeleted: break; case GnomePilotRecordNew: case GnomePilotRecordModified: - new_state = ICAL_PILOT_SYNC_MOD; +// new_state = ICAL_PILOT_SYNC_MOD; break; } @@ -1103,8 +1103,8 @@ set_status (GnomePilotConduitStandardAbs *conduit, cal_component_get_pilot_id (local->ical, &pilot_id); success = cal_client_update_object (ctxt->client, local->ical); - cal_client_update_pilot_id (ctxt->client, (char *) uid, - pilot_id, new_state); +/* cal_client_update_pilot_id (ctxt->client, (char *) uid, */ +/* pilot_id, new_state); */ } if (! success) { diff --git a/calendar/conduits/calendar/calendar-conduit.h b/calendar/conduits/calendar/calendar-conduit.h index 359d966d83..7326521183 100644 --- a/calendar/conduits/calendar/calendar-conduit.h +++ b/calendar/conduits/calendar/calendar-conduit.h @@ -12,7 +12,6 @@ #include #include #include -#include #include #include -- cgit