aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-08-20 07:48:07 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-08-20 07:48:07 +0800
commit432977b820abd0093e6f68f81bd7c01fafc3536f (patch)
treedd3120fa2c55df85a5cd169a7d2c68e2e9a59133
parent9c8d4b95348c4b191c2a95128ec65ffd152cb2ff (diff)
downloadgsoc2013-evolution-432977b820abd0093e6f68f81bd7c01fafc3536f.tar
gsoc2013-evolution-432977b820abd0093e6f68f81bd7c01fafc3536f.tar.gz
gsoc2013-evolution-432977b820abd0093e6f68f81bd7c01fafc3536f.tar.bz2
gsoc2013-evolution-432977b820abd0093e6f68f81bd7c01fafc3536f.tar.lz
gsoc2013-evolution-432977b820abd0093e6f68f81bd7c01fafc3536f.tar.xz
gsoc2013-evolution-432977b820abd0093e6f68f81bd7c01fafc3536f.tar.zst
gsoc2013-evolution-432977b820abd0093e6f68f81bd7c01fafc3536f.zip
added missing implementation.
2003-08-18 Rodrigo Moya <rodrigo@ximian.com> * src/libical/icalcomponent.c (icalcomponent_set_uid): added missing implementation. svn path=/trunk/; revision=22297
-rw-r--r--libical/ChangeLog5
-rw-r--r--libical/src/libical/icalcomponent.c14
2 files changed, 18 insertions, 1 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog
index 912cc73a1b..cb695bd4fa 100644
--- a/libical/ChangeLog
+++ b/libical/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-18 Rodrigo Moya <rodrigo@ximian.com>
+
+ * src/libical/icalcomponent.c (icalcomponent_set_uid): added missing
+ implementation.
+
2003-08-07 Rodrigo Moya <rodrigo@ximian.com>
* src/libical/icalcomponent.c (icalcomponent_get_uid): added missing
diff --git a/libical/src/libical/icalcomponent.c b/libical/src/libical/icalcomponent.c
index c771dc3cf9..6c222f01a9 100644
--- a/libical/src/libical/icalcomponent.c
+++ b/libical/src/libical/icalcomponent.c
@@ -1458,7 +1458,19 @@ const char* icalcomponent_get_summary(icalcomponent* comp)
void icalcomponent_set_comment(icalcomponent* comp, const char* v);
const char* icalcomponent_get_comment(icalcomponent* comp);
-void icalcomponent_set_uid(icalcomponent* comp, const char* v);
+void icalcomponent_set_uid(icalcomponent* comp, const char* v)
+{
+ icalcomponent *inner = icalcomponent_get_inner (comp);
+ icalproperty *prop
+ = icalcomponent_get_first_property (inner, ICAL_UID_PROPERTY);
+
+ if (prop == 0) {
+ prop = icalproperty_new_uid (v);
+ icalcomponent_add_property (inner, prop);
+ }
+
+ icalproperty_set_uid (prop, v);
+}
const char* icalcomponent_get_uid(icalcomponent* comp)
{