Files
evolution/calendar/gui/itip-utils.c
JP Rosevear d06ca412e4 remove hardcoded values (edit_attendee): ditto, and there are only 4 roles
2001-04-27  JP Rosevear  <jpr@ximian.com>

	* gui/e-meeting-edit.c (put_property_in_list): remove hardcoded
	values
	(edit_attendee): ditto, and there are only 4 roles now

	* gui/e-meeting-dialog.glade: tweak

	* gui/itip-utils.c: There shouldn't be an "other" role

svn path=/trunk/; revision=9616
2001-04-27 20:14:17 +00:00

49 lines
989 B
C

/* -*- 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"
};
/* 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;
}