From 0fbb812091f3fe3aa15fc5f9308358cb633533fe Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 30 Jan 2002 22:59:29 +0000 Subject: if this is a reply, print the attendee status 2002-01-30 JP Rosevear * gui/e-itip-control.c (write_html): if this is a reply, print the attendee status svn path=/trunk/; revision=15531 --- calendar/ChangeLog | 5 +++++ calendar/gui/e-itip-control.c | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index a736393c88..a93af11699 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2002-01-30 JP Rosevear + + * gui/e-itip-control.c (write_html): if this is a reply, print the + attendee status + 2002-01-25 Federico Mena Quintero * gui/dialogs/alarm-options.glade: Use 1 instead of zero as the diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index 66abdb89be..12ed92e93e 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -747,6 +747,40 @@ write_html (EItipControl *itip, const gchar *itip_desc, const gchar *itip_title, gtk_html_stream_printf (html_stream, "%s %s

", U_("Summary:"), text.value ? text.value : U_("None")); + /* Status */ + if (priv->method == ICAL_METHOD_REPLY) { + GSList *alist; + + cal_component_get_attendee_list (priv->comp, &alist); + + if (alist != NULL) { + CalComponentAttendee *a = alist->data; + + gtk_html_stream_printf (html_stream, "%s ", + U_("Status:")); + + switch (a->status) { + case ICAL_PARTSTAT_ACCEPTED: + gtk_html_stream_printf (html_stream, "%s

", + U_("Accepted")); + break; + case ICAL_PARTSTAT_TENTATIVE: + gtk_html_stream_printf (html_stream, "%s

", + U_("Tentatively Accepted")); + break; + case ICAL_PARTSTAT_DECLINED: + gtk_html_stream_printf (html_stream, "%s

", + U_("Declined")); + break; + default: + gtk_html_stream_printf (html_stream, "%s

", + U_("Unknown")); + } + } + + cal_component_free_attendee_list (alist); + } + /* Description */ cal_component_get_description_list (priv->comp, &l); if (l) -- cgit v1.2.3