From 81207158058c5f5e4315e3b66f92a46aec64e5ae Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Mon, 26 Jul 1999 23:06:35 +0000 Subject: Generate unique IDs on Vevents we load that lack it. WE need this for the 1999-07-26 Miguel de Icaza * 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 svn path=/trunk/; revision=1037 --- calendar/ChangeLog | 8 ++++++++ calendar/cal-util/calobj.c | 4 +++- calendar/calobj.c | 4 +++- calendar/pcs/calobj.c | 4 +++- 4 files changed, 17 insertions(+), 3 deletions(-) (limited to 'calendar') 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 + + * 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 * 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)); -- cgit v1.2.3