diff options
author | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-08-08 22:58:02 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-08-08 22:58:02 +0800 |
commit | fa0a110592ab3feda8051417d5dd198e96308367 (patch) | |
tree | 30611ac69b73e59a48b89acd0d40c154ef303ece /libical | |
parent | dc84df9871b3171a21d62feec988160f3c608103 (diff) | |
download | gsoc2013-evolution-fa0a110592ab3feda8051417d5dd198e96308367.tar gsoc2013-evolution-fa0a110592ab3feda8051417d5dd198e96308367.tar.gz gsoc2013-evolution-fa0a110592ab3feda8051417d5dd198e96308367.tar.bz2 gsoc2013-evolution-fa0a110592ab3feda8051417d5dd198e96308367.tar.lz gsoc2013-evolution-fa0a110592ab3feda8051417d5dd198e96308367.tar.xz gsoc2013-evolution-fa0a110592ab3feda8051417d5dd198e96308367.tar.zst gsoc2013-evolution-fa0a110592ab3feda8051417d5dd198e96308367.zip |
Merged ECalendarTable changes from new-calendar-branch
svn path=/trunk/; revision=22143
Diffstat (limited to 'libical')
-rw-r--r-- | libical/ChangeLog | 5 | ||||
-rw-r--r-- | libical/src/libical/icalcomponent.c | 13 |
2 files changed, 17 insertions, 1 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog index a08e9535a8..912cc73a1b 100644 --- a/libical/ChangeLog +++ b/libical/ChangeLog @@ -1,3 +1,8 @@ +2003-08-07 Rodrigo Moya <rodrigo@ximian.com> + + * src/libical/icalcomponent.c (icalcomponent_get_uid): added missing + implementation. + 2003-05-14 Rodrigo Moya <rodrigo@ximian.com> Fixes #41579 diff --git a/libical/src/libical/icalcomponent.c b/libical/src/libical/icalcomponent.c index ce819ddbd6..c771dc3cf9 100644 --- a/libical/src/libical/icalcomponent.c +++ b/libical/src/libical/icalcomponent.c @@ -1459,7 +1459,18 @@ 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); -const char* icalcomponent_get_uid(icalcomponent* comp); + +const char* icalcomponent_get_uid(icalcomponent* comp) +{ + icalcomponent *inner = icalcomponent_get_inner (comp); + icalproperty *prop = icalcomponent_get_first_property (inner, ICAL_UID_PROPERTY); + + if (prop == 0) { + return 0; + } + + return icalproperty_get_uid (prop); +} void icalcomponent_set_recurrenceid(icalcomponent* comp, struct icaltimetype v); |