diff options
author | JP Rosevear <jpr@novell.com> | 2005-03-15 23:57:10 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2005-03-15 23:57:10 +0800 |
commit | e70be54943aaecb9e80b0786efd44d9f46e4f193 (patch) | |
tree | 2967d7e72ed97679b537726121523d01f1962096 /plugins/itip-formatter/itip-formatter.c | |
parent | 689014888003497d05d7c89c3db1eae67dae310b (diff) | |
download | gsoc2013-evolution-e70be54943aaecb9e80b0786efd44d9f46e4f193.tar.gz gsoc2013-evolution-e70be54943aaecb9e80b0786efd44d9f46e4f193.tar.zst gsoc2013-evolution-e70be54943aaecb9e80b0786efd44d9f46e4f193.zip |
set the type appropriately so that assigned tasks can be handled
2005-03-11 JP Rosevear <jpr@novell.com>
* itip-formatter.c (extract_itip_data): set the type appropriately
so that assigned tasks can be handled
svn path=/trunk/; revision=29025
Diffstat (limited to 'plugins/itip-formatter/itip-formatter.c')
-rw-r--r-- | plugins/itip-formatter/itip-formatter.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index d1954a8cb9..fed28f445b 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -1010,6 +1010,20 @@ extract_itip_data (FormatItipPObject *pitip, GtkContainer *container) return FALSE; } + + switch (kind) { + case ICAL_VEVENT_COMPONENT: + pitip->type = E_CAL_SOURCE_TYPE_EVENT; + break; + case ICAL_VTODO_COMPONENT: + pitip->type = E_CAL_SOURCE_TYPE_TODO; + break; + default: + set_itip_error (pitip, container, + _("The item in the calendar is not valid"), + _("The message does contain a calendar, but the calendar contains no events, tasks or free/busy information")); + return FALSE; + } pitip->total = icalcomponent_count_components (pitip->main_comp, ICAL_VEVENT_COMPONENT); pitip->total += icalcomponent_count_components (pitip->main_comp, ICAL_VTODO_COMPONENT); |