diff options
author | Jesse Pavel <jpavel@src.gnome.org> | 2000-11-14 08:26:12 +0800 |
---|---|---|
committer | Jesse Pavel <jpavel@src.gnome.org> | 2000-11-14 08:26:12 +0800 |
commit | c633a80c1e353f8c56e6a97bd8996a33fbf3b384 (patch) | |
tree | ce4f19dc68dd941e8865a827e71bf96537b7845a /calendar/gui/itip-utils.c | |
parent | 4bc4ee63bea0b2eaa1215be0df33f454a2918f37 (diff) | |
download | gsoc2013-evolution-c633a80c1e353f8c56e6a97bd8996a33fbf3b384.tar.gz gsoc2013-evolution-c633a80c1e353f8c56e6a97bd8996a33fbf3b384.tar.zst gsoc2013-evolution-c633a80c1e353f8c56e6a97bd8996a33fbf3b384.zip |
I created this file to store some commonly used enumeration to string
* gui/itip-utils.[ch]: I created this file to store some commonly used enumeration to
string mappings and functions.
* gui/Makefile.am: this was changed to reflect the addition of the above file.
* gui/e-itip-control.c: added code to take action on a REPLY message.
* gui/e-meeting-edit.c: bug fixes.
svn path=/trunk/; revision=6566
Diffstat (limited to 'calendar/gui/itip-utils.c')
-rw-r--r-- | calendar/gui/itip-utils.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c new file mode 100644 index 0000000000..f090f051d6 --- /dev/null +++ b/calendar/gui/itip-utils.c @@ -0,0 +1,49 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * itip-utils.c + * + * Authors: + * Jesse Pavel <jpavel@helixcode.com> + * + * Copyright 2000, Helix Code, Inc. + */ + +#include "itip-utils.h" + +gchar *partstat_values[] = { + "Needs action", + "Accepted", + "Declined", + "Tentative", + "Delegated", + "Completed", + "In Progress", + "Unknown" +}; + +gchar *role_values[] = { + "Chair", + "Required Participant", + "Optional Participant", + "Non-Participant", + "Other" +}; + + + +/* Note that I have to iterate and check myself because + ical_property_get_xxx_parameter doesn't take into account the + kind of parameter for which you wish to search! */ +icalparameter * +get_icalparam_by_type (icalproperty *prop, icalparameter_kind kind) +{ + icalparameter *param; + + for (param = icalproperty_get_first_parameter (prop, ICAL_ANY_PARAMETER); + param != NULL && icalparameter_isa (param) != kind; + param = icalproperty_get_next_parameter (prop, ICAL_ANY_PARAMETER) ); + + return param; +} + + |