aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-01-31 06:59:29 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-01-31 06:59:29 +0800
commit0fbb812091f3fe3aa15fc5f9308358cb633533fe (patch)
tree856963cfeda550b2fcd72495763b3d8266163881 /calendar
parentae64f7d6bf37b586dec7b3956c5badffd21a827e (diff)
downloadgsoc2013-evolution-0fbb812091f3fe3aa15fc5f9308358cb633533fe.tar
gsoc2013-evolution-0fbb812091f3fe3aa15fc5f9308358cb633533fe.tar.gz
gsoc2013-evolution-0fbb812091f3fe3aa15fc5f9308358cb633533fe.tar.bz2
gsoc2013-evolution-0fbb812091f3fe3aa15fc5f9308358cb633533fe.tar.lz
gsoc2013-evolution-0fbb812091f3fe3aa15fc5f9308358cb633533fe.tar.xz
gsoc2013-evolution-0fbb812091f3fe3aa15fc5f9308358cb633533fe.tar.zst
gsoc2013-evolution-0fbb812091f3fe3aa15fc5f9308358cb633533fe.zip
if this is a reply, print the attendee status
2002-01-30 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (write_html): if this is a reply, print the attendee status svn path=/trunk/; revision=15531
Diffstat (limited to 'calendar')
-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)