diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-09-13 05:18:38 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-09-13 05:18:38 +0800 |
commit | ee5fca52e1821c11907c7feba961ab97d32050dd (patch) | |
tree | 3b2bf119cbd01bb77c0f4fe439c34159e71d8b62 | |
parent | f95459ff4d1989e4bacc00de9d734ee775cce74f (diff) | |
download | gsoc2013-evolution-ee5fca52e1821c11907c7feba961ab97d32050dd.tar.gz gsoc2013-evolution-ee5fca52e1821c11907c7feba961ab97d32050dd.tar.zst gsoc2013-evolution-ee5fca52e1821c11907c7feba961ab97d32050dd.zip |
Hack to compile for distcheck.
2000-09-12 JP Rosevear <jpr@helixcode.com>
* conduits/calendar/calendar-conduit.c: Hack to compile for
distcheck.
* conduits/calendar/calendar-conduit.h: Remove calobj.h dependency
svn path=/trunk/; revision=5390
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/conduits/calendar/calendar-conduit.c | 38 | ||||
-rw-r--r-- | calendar/conduits/calendar/calendar-conduit.h | 1 |
3 files changed, 25 insertions, 20 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index c825ccc5d7..7e2c6aae76 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,11 @@ 2000-09-12 JP Rosevear <jpr@helixcode.com> + * conduits/calendar/calendar-conduit.c: Hack to compile for distcheck. + + * conduits/calendar/calendar-conduit.h: Remove calobj.h dependency + +2000-09-12 JP Rosevear <jpr@helixcode.com> + * pcs/cal-backend-file.c (cal_backend_file_load): Use g_int_* for now (cal_backend_file_create): ditto 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 <gpilotd/gnome-pilot-conduit.h> #include <gpilotd/gnome-pilot-conduit-standard-abs.h> #include <cal-client/cal-client.h> -#include <cal-util/calobj.h> #include <cal-util/timeutil.h> #include <liboaf/liboaf.h> |