diff options
Diffstat (limited to 'calendar/gui/e-meeting-attendee.c')
-rw-r--r-- | calendar/gui/e-meeting-attendee.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/calendar/gui/e-meeting-attendee.c b/calendar/gui/e-meeting-attendee.c index 08ec9a1152..02d550fa2a 100644 --- a/calendar/gui/e-meeting-attendee.c +++ b/calendar/gui/e-meeting-attendee.c @@ -30,8 +30,6 @@ #include "e-meeting-attendee.h" struct _EMeetingAttendeePrivate { - EMeetingAttendeeType type; - gchar *address; gchar *member; @@ -153,8 +151,6 @@ init (EMeetingAttendee *ia) ia->priv = priv; - priv->type = E_MEETING_ATTENDEE_REQUIRED_PERSON; - priv->address = string_test (NULL); priv->member = string_test (NULL); @@ -609,20 +605,17 @@ e_meeting_attendee_get_atype (EMeetingAttendee *ia) priv = ia->priv; - return priv->type; -} + if (priv->cutype == ICAL_CUTYPE_ROOM + || priv->cutype == ICAL_CUTYPE_RESOURCE) + return E_MEETING_ATTENDEE_RESOURCE; -void -e_meeting_attendee_set_atype (EMeetingAttendee *ia, EMeetingAttendeeType type) -{ - EMeetingAttendeePrivate *priv; + if (priv->role == ICAL_ROLE_CHAIR + || priv->role == ICAL_ROLE_REQPARTICIPANT) + return E_MEETING_ATTENDEE_REQUIRED_PERSON; - priv = ia->priv; - - priv->type = type; + return E_MEETING_ATTENDEE_OPTIONAL_PERSON; } - static gint compare_times (EMeetingTime *time1, EMeetingTime *time2) |