If the enddate is not set, set the repeatForever to 1. This fixes all of

1999-07-28  Miguel de Icaza  <miguel@gnu.org>

	* calendar-pilot-sync.c: (sync_object_to_pilot): If the enddate is
	not set, set the repeatForever to 1.  This fixes all of the
	birthdays problems I had.

svn path=/trunk/; revision=1042
This commit is contained in:
Miguel de Icaza
1999-07-29 16:24:16 +00:00
committed by Arturo Espinosa
parent cabedf4da9
commit 92e605a31e
3 changed files with 17 additions and 7 deletions

View File

@ -1,6 +1,10 @@
1999-07-28 Miguel de Icaza <miguel@gnu.org>
* calendar-pilot-sync.c: Make the code not take arguments
* calendar-pilot-sync.c: (sync_object_to_pilot): If the enddate is
not set, set the repeatForever to 1. This fixes all of the
birthdays problems I had.
Make the code not take arguments
(sync_cal_to_pilot): Nice event update information
* calendar.c (calendar_new): Add Event UID hash table.

View File

@ -384,7 +384,10 @@ sync_object_to_pilot (GNOME_Calendar_Repository repo, iCalObject *obj, int pilot
a->repeatType = repeatNone;
break;
}
a->repeatEnd = *localtime (&obj->recur->_enddate);
if (obj->recur->enddate == 0){
a->repeatForever = 1;
} else
a->repeatEnd = *localtime (&obj->recur->enddate);
}
/*
@ -442,8 +445,8 @@ sync_object_to_pilot (GNOME_Calendar_Repository repo, iCalObject *obj, int pilot
attr &= ~dlpRecAttrDirty;
dlp_WriteRecord (
pilot_fd, db, attr,
obj->pilot_id, cat, buffer, rec_len, &new_id);
pilot_fd, db, 0,
obj->pilot_id, 0, buffer, rec_len, &new_id);
GNOME_Calendar_Repository_update_pilot_id (repo, obj->uid, new_id, ICAL_PILOT_SYNC_NONE, &ev);
free_Appointment (a);

View File

@ -384,7 +384,10 @@ sync_object_to_pilot (GNOME_Calendar_Repository repo, iCalObject *obj, int pilot
a->repeatType = repeatNone;
break;
}
a->repeatEnd = *localtime (&obj->recur->_enddate);
if (obj->recur->enddate == 0){
a->repeatForever = 1;
} else
a->repeatEnd = *localtime (&obj->recur->enddate);
}
/*
@ -442,8 +445,8 @@ sync_object_to_pilot (GNOME_Calendar_Repository repo, iCalObject *obj, int pilot
attr &= ~dlpRecAttrDirty;
dlp_WriteRecord (
pilot_fd, db, attr,
obj->pilot_id, cat, buffer, rec_len, &new_id);
pilot_fd, db, 0,
obj->pilot_id, 0, buffer, rec_len, &new_id);
GNOME_Calendar_Repository_update_pilot_id (repo, obj->uid, new_id, ICAL_PILOT_SYNC_NONE, &ev);
free_Appointment (a);