From 075eec29600290b43cd8a37710888a9aa5c2ae0b Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 2 Apr 2009 14:32:12 +0000 Subject: ** Fix for bug #577717 2009-04-02 Milan Crha ** Fix for bug #577717 * gui/dialogs/alarm-dialog.c: (alarm_to_dialog), (malarm_widgets_to_alarm): Fill some default values to mandatory properties of ECalComponentAttendee. svn path=/trunk/; revision=37489 --- calendar/gui/dialogs/alarm-dialog.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'calendar/gui/dialogs') diff --git a/calendar/gui/dialogs/alarm-dialog.c b/calendar/gui/dialogs/alarm-dialog.c index 2f1393d70f..984c1b756f 100644 --- a/calendar/gui/dialogs/alarm-dialog.c +++ b/calendar/gui/dialogs/alarm-dialog.c @@ -220,6 +220,9 @@ alarm_to_dialog (Dialog *dialog) a = g_new0 (ECalComponentAttendee, 1); a->value = email; + a->cutype = ICAL_CUTYPE_INDIVIDUAL; + a->status = ICAL_PARTSTAT_NEEDSACTION; + a->role = ICAL_ROLE_REQPARTICIPANT; attendee_list.data = a; attendee_list.next = NULL; e_cal_component_alarm_set_attendee_list (dialog->alarm, &attendee_list); @@ -429,6 +432,9 @@ malarm_widgets_to_alarm (Dialog *dialog, ECalComponentAlarm *alarm) a = g_new0 (ECalComponentAttendee, 1); a->value = e_destination_get_email (dest); a->cn = e_destination_get_name (dest); + a->cutype = ICAL_CUTYPE_INDIVIDUAL; + a->status = ICAL_PARTSTAT_NEEDSACTION; + a->role = ICAL_ROLE_REQPARTICIPANT; attendee_list = g_slist_append (attendee_list, a); } -- cgit v1.2.3