aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/e-itip-control.c34
2 files changed, 39 insertions, 0 deletions
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 <jpr@ximian.com>
+
+ * gui/e-itip-control.c (write_html): if this is a reply, print the
+ attendee status
+
2002-01-25 Federico Mena Quintero <federico@ximian.com>
* 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, "<b>%s</b> %s<br><br>",
U_("Summary:"), text.value ? text.value : U_("<i>None</i>"));
+ /* 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, "<b>%s</b> ",
+ U_("Status:"));
+
+ switch (a->status) {
+ case ICAL_PARTSTAT_ACCEPTED:
+ gtk_html_stream_printf (html_stream, "%s<br><br>",
+ U_("Accepted"));
+ break;
+ case ICAL_PARTSTAT_TENTATIVE:
+ gtk_html_stream_printf (html_stream, "%s<br><br>",
+ U_("Tentatively Accepted"));
+ break;
+ case ICAL_PARTSTAT_DECLINED:
+ gtk_html_stream_printf (html_stream, "%s<br><br>",
+ U_("Declined"));
+ break;
+ default:
+ gtk_html_stream_printf (html_stream, "%s<br><br>",
+ U_("Unknown"));
+ }
+ }
+
+ cal_component_free_attendee_list (alist);
+ }
+
/* Description */
cal_component_get_description_list (priv->comp, &l);
if (l)