diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-08-20 07:48:07 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-08-20 07:48:07 +0800 |
commit | 432977b820abd0093e6f68f81bd7c01fafc3536f (patch) | |
tree | dd3120fa2c55df85a5cd169a7d2c68e2e9a59133 /libical/src | |
parent | 9c8d4b95348c4b191c2a95128ec65ffd152cb2ff (diff) | |
download | gsoc2013-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
Diffstat (limited to 'libical/src')
-rw-r--r-- | libical/src/libical/icalcomponent.c | 14 |
1 files changed, 13 insertions, 1 deletions
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) { |