aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>1999-07-27 07:06:35 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-07-27 07:06:35 +0800
commit81207158058c5f5e4315e3b66f92a46aec64e5ae (patch)
tree63a244aa5bf4dac5596896a3bfffdfc76ec1b34a /calendar
parentc1ff2cca41bef3f9e72f9d8222eaf145e9b03498 (diff)
downloadgsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.tar
gsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.tar.gz
gsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.tar.bz2
gsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.tar.lz
gsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.tar.xz
gsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.tar.zst
gsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.zip
Generate unique IDs on Vevents we load that lack it. WE need this for the
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 svn path=/trunk/; revision=1037
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/cal-util/calobj.c4
-rw-r--r--calendar/calobj.c4
-rw-r--r--calendar/pcs/calobj.c4
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));