aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/comp-editor-factory.c
diff options
context:
space:
mode:
authorHarish Krishnaswamy <kharish@src.gnome.org>2004-10-20 00:20:07 +0800
committerHarish Krishnaswamy <kharish@src.gnome.org>2004-10-20 00:20:07 +0800
commit87abd6ffee84ee9dfa54e1966d23168e6629a3f8 (patch)
treee73ac7fc9c63db70ba73f5fff7fa9e6d60edf681 /calendar/gui/comp-editor-factory.c
parentda657db10113fc2fbb1b0b17f8482899f2abf772 (diff)
downloadgsoc2013-evolution-87abd6ffee84ee9dfa54e1966d23168e6629a3f8.tar.gz
gsoc2013-evolution-87abd6ffee84ee9dfa54e1966d23168e6629a3f8.tar.zst
gsoc2013-evolution-87abd6ffee84ee9dfa54e1966d23168e6629a3f8.zip
Use e_cal_component_has_attendees to test if it is a meeting. By default,
* gui/comp-editor-factory.c: (edit_existing): Use e_cal_component_has_attendees to test if it is a meeting. * gui/dialogs/event-editor.c: (event_editor_init): By default, the event is not a meeting. (event_editor_construct): Do not add the invitation, scheduling pages to the editor if it is not a meeting. * gui/e-day-view.c: (e_day_view_on_event_double_click): check the icalproperty to test if the event is a meeting. svn path=/trunk/; revision=27628
Diffstat (limited to 'calendar/gui/comp-editor-factory.c')
-rw-r--r--calendar/gui/comp-editor-factory.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/calendar/gui/comp-editor-factory.c b/calendar/gui/comp-editor-factory.c
index da7bba1a93..ea809b35e5 100644
--- a/calendar/gui/comp-editor-factory.c
+++ b/calendar/gui/comp-editor-factory.c
@@ -245,8 +245,6 @@ edit_existing (OpenClient *oc, const char *uid)
icalcomponent *icalcomp;
CompEditor *editor;
ECalComponentVType vtype;
- /* Presence of attendees indicates that component is a meeting */
- GSList *attendees = NULL;
g_assert (oc->open);
@@ -271,8 +269,7 @@ edit_existing (OpenClient *oc, const char *uid)
switch (vtype) {
case E_CAL_COMPONENT_EVENT:
- e_cal_component_get_attendee_list (comp, &attendees);
- editor = COMP_EDITOR (event_editor_new (oc->client, attendees ? TRUE: FALSE));
+ editor = COMP_EDITOR (event_editor_new (oc->client, e_cal_component_has_attendees (comp)));
break;
case E_CAL_COMPONENT_TODO: