aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-meeting-attendee.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-10-19 05:34:04 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-10-19 05:34:04 +0800
commitf6dfb498619f36e5038b305318c2db657362ca79 (patch)
tree7d027ced62345ed9ac8f94adfe651861a300697c /calendar/gui/e-meeting-attendee.c
parentd4fd9c55c7f5d5b7ad3f0bf1c4a2481023f7bceb (diff)
downloadgsoc2013-evolution-f6dfb498619f36e5038b305318c2db657362ca79.tar
gsoc2013-evolution-f6dfb498619f36e5038b305318c2db657362ca79.tar.gz
gsoc2013-evolution-f6dfb498619f36e5038b305318c2db657362ca79.tar.bz2
gsoc2013-evolution-f6dfb498619f36e5038b305318c2db657362ca79.tar.lz
gsoc2013-evolution-f6dfb498619f36e5038b305318c2db657362ca79.tar.xz
gsoc2013-evolution-f6dfb498619f36e5038b305318c2db657362ca79.tar.zst
gsoc2013-evolution-f6dfb498619f36e5038b305318c2db657362ca79.zip
call the invite others dialog in the model
2001-10-18 JP Rosevear <jpr@ximian.com> * gui/e-meeting-time-sel.c (e_meeting_time_selector_on_invite_others_button_clicked): call the invite others dialog in the model * gui/e-meeting-attendee.c (e_meeting_attendee_get_atype): pick attendee type based on role and cutype * gui/e-meeting-attendee.h: remove proto * gui/Makefile.am: compile select names idl * gui/e-meeting-model.h: new proto * gui/dialogs/meeting-page.c: remove invite others dialogs bits from here * gui/e-meeting-model.c (e_meeting_model_invite_others_dialog): and put them here * gui/dialogs/Makefile.am: compile corba bits in parent dir * gui/dialogs/comp-editor-util.h: reflect above in includes * gui/dialogs/e-delegate-dialog.c: ditto * gui/dialogs/schedule-page.c: ditto and clean includes svn path=/trunk/; revision=13775
Diffstat (limited to 'calendar/gui/e-meeting-attendee.c')
-rw-r--r--calendar/gui/e-meeting-attendee.c21
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)