diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 8 | ||||
-rw-r--r-- | calendar/cal-util/calobj.c | 4 | ||||
-rw-r--r-- | calendar/calobj.c | 4 | ||||
-rw-r--r-- | calendar/pcs/calobj.c | 4 |
4 files changed, 17 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 8387496f38..9dac365862 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +1999-07-26 Miguel de Icaza <miguel@gnu.org> + + * calobj.c (ical_object_create_from_vobject): Generate unique IDs + on Vevents we load that lack it. WE need this for the old + gnome calendar generated files (ie, before now :-). + + Required to sync with the Palm + 1999-07-19 Matt Martin <matt@abacusnet.net> * timeutil.c (time_from_isodate): Handle the 'Z' parameter to the diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c index 0ab8c1c004..2618470808 100644 --- a/calendar/cal-util/calobj.c +++ b/calendar/cal-util/calobj.c @@ -585,8 +585,10 @@ ical_object_create_from_vobject (VObject *o, const char *object_name) if (has (o, VCUniqueStringProp)){ ical->uid = g_strdup (str_val (vo)); free (the_str); + } else { + ical->uid = ical_gen_uid (); } - + /* seq */ if (has (o, VCSequenceProp)){ ical->seq = atoi (str_val (vo)); diff --git a/calendar/calobj.c b/calendar/calobj.c index 0ab8c1c004..2618470808 100644 --- a/calendar/calobj.c +++ b/calendar/calobj.c @@ -585,8 +585,10 @@ ical_object_create_from_vobject (VObject *o, const char *object_name) if (has (o, VCUniqueStringProp)){ ical->uid = g_strdup (str_val (vo)); free (the_str); + } else { + ical->uid = ical_gen_uid (); } - + /* seq */ if (has (o, VCSequenceProp)){ ical->seq = atoi (str_val (vo)); diff --git a/calendar/pcs/calobj.c b/calendar/pcs/calobj.c index 0ab8c1c004..2618470808 100644 --- a/calendar/pcs/calobj.c +++ b/calendar/pcs/calobj.c @@ -585,8 +585,10 @@ ical_object_create_from_vobject (VObject *o, const char *object_name) if (has (o, VCUniqueStringProp)){ ical->uid = g_strdup (str_val (vo)); free (the_str); + } else { + ical->uid = ical_gen_uid (); } - + /* seq */ if (has (o, VCSequenceProp)){ ical->seq = atoi (str_val (vo)); |