aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.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/e-day-view.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/e-day-view.c')
-rw-r--r--calendar/gui/e-day-view.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index bd43acdabd..98d591706b 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -3246,6 +3246,7 @@ e_day_view_on_event_double_click (EDayView *day_view,
gint event_num)
{
EDayViewEvent *event;
+ icalproperty *attendee_prop = NULL;
if (day == -1)
event = &g_array_index (day_view->long_events, EDayViewEvent,
@@ -3256,9 +3257,11 @@ e_day_view_on_event_double_click (EDayView *day_view,
e_day_view_stop_editing_event (day_view);
+
+ attendee_prop = icalcomponent_get_first_property (event->comp_data->icalcomp, ICAL_ATTENDEE_PROPERTY);
e_calendar_view_edit_appointment (E_CALENDAR_VIEW (day_view),
event->comp_data->client,
- event->comp_data->icalcomp, FALSE);
+ event->comp_data->icalcomp, attendee_prop ? TRUE:FALSE);
}
static void