aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/e-itip-control.c45
2 files changed, 43 insertions, 7 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 4f62562ab5..91b4e948f4 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-23 JP Rosevear <jpr@ximian.com>
+
+ * gui/e-itip-control.c (set_date_label): base text on component
+ type
+
2001-09-20 Rodrigo Moya <rodrigo@ximian.com>
* gui/component-factory.c: don't use gnome_vfs_uri_new_private
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c
index 8bbafb8dbd..426abd83e0 100644
--- a/calendar/gui/e-itip-control.c
+++ b/calendar/gui/e-itip-control.c
@@ -75,7 +75,7 @@ struct _EItipControlPrivate {
};
/* HTML Strings */
-#define HTML_HEADER "<html><head><title> Evolution Meeting Request</title></head>"
+#define HTML_HEADER "<html><head><title>iCalendar Information</title></head>"
#define HTML_BODY_START "<body bgcolor=\"#ffffff\" text=\"#000000\" link=\"#336699\">"
#define HTML_SEP "<hr color=#336699 align=\"left\" width=450>"
#define HTML_BODY_END "</body>"
@@ -454,13 +454,34 @@ set_date_label (GtkHTML *html, GtkHTMLStream *html_stream, CalComponent *comp)
time_t start = 0, end = 0, complete = 0, due = 0;
static char buffer[1024];
gboolean wrote = FALSE;
+ CalComponentVType type;
+ type = cal_component_get_vtype (comp);
+
/* FIXME: timezones. */
buffer[0] = '\0';
cal_component_get_dtstart (comp, &datetime);
if (datetime.value) {
start = icaltime_as_timet (*datetime.value);
- write_label_piece (start, buffer, 1024, "Meeting begins: <b>", "</b><br>");
+ switch (type) {
+ case CAL_COMPONENT_EVENT:
+ write_label_piece (start, buffer, 1024,
+ U_("Meeting begins: <b>"),
+ "</b><br>");
+ break;
+ case CAL_COMPONENT_TODO:
+ write_label_piece (start, buffer, 1024,
+ U_("Task begins: <b>"),
+ "</b><br>");
+ break;
+ case CAL_COMPONENT_FREEBUSY:
+ write_label_piece (start, buffer, 1024,
+ U_("Free/Busy info begins: <b>"),
+ "</b><br>");
+ break;
+ default:
+ write_label_piece (start, buffer, 1024, U_("Begins: <b>"), "</b><br>");
+ }
gtk_html_write (html, html_stream, buffer, strlen(buffer));
wrote = TRUE;
}
@@ -470,7 +491,17 @@ set_date_label (GtkHTML *html, GtkHTMLStream *html_stream, CalComponent *comp)
cal_component_get_dtend (comp, &datetime);
if (datetime.value){
end = icaltime_as_timet (*datetime.value);
- write_label_piece (end, buffer, 1024, "Meeting ends: <b>", "</b><br>");
+ switch (type) {
+ case CAL_COMPONENT_EVENT:
+ write_label_piece (end, buffer, 1024, "Meeting ends: <b>", "</b><br>");
+ break;
+ case CAL_COMPONENT_FREEBUSY:
+ write_label_piece (start, buffer, 1024, "Free/Busy info ends: <b>",
+ "</b><br>");
+ break;
+ default:
+ write_label_piece (start, buffer, 1024, "Ends: <b>", "</b><br>");
+ }
gtk_html_write (html, html_stream, buffer, strlen (buffer));
wrote = TRUE;
}
@@ -479,9 +510,9 @@ set_date_label (GtkHTML *html, GtkHTMLStream *html_stream, CalComponent *comp)
buffer[0] = '\0';
datetime.tzid = NULL;
cal_component_get_completed (comp, &datetime.value);
- if (datetime.value) {
+ if (type == CAL_COMPONENT_TODO && datetime.value) {
complete = icaltime_as_timet (*datetime.value);
- write_label_piece (complete, buffer, 1024, "Completed: <b>", "</b><br>");
+ write_label_piece (complete, buffer, 1024, "Task Completed: <b>", "</b><br>");
gtk_html_write (html, html_stream, buffer, strlen (buffer));
wrote = TRUE;
}
@@ -489,9 +520,9 @@ set_date_label (GtkHTML *html, GtkHTMLStream *html_stream, CalComponent *comp)
buffer[0] = '\0';
cal_component_get_due (comp, &datetime);
- if (complete == 0 && datetime.value) {
+ if (type == CAL_COMPONENT_TODO && complete == 0 && datetime.value) {
due = icaltime_as_timet (*datetime.value);
- write_label_piece (due, buffer, 1024, "Due: <b>", "</b><br>");
+ write_label_piece (due, buffer, 1024, "Task Due: <b>", "</b><br>");
gtk_html_write (html, html_stream, buffer, strlen (buffer));
wrote = TRUE;
}
1/+308 * Upgrade to 0.15jesper2002-03-172-2/+2 * Stage 1 of gettext update.ade2002-03-161-1/+1 * Add extra dependency of ports/security/p5-Crypt-DES_EDE3jesper2002-03-151-0/+1 * Upgrade to 0.06jesper2002-03-142-2/+2 * Update to 0.8.3.sobomax2002-02-233-3/+3 * Delete a nonexistent port entry: "gb2jis".knu2002-02-141-1/+0 * Update maintainer email addresspat2002-01-291-1/+1 * Update to 1.25.tobez2002-01-232-2/+2 * - Add NOPORTDOCS support to pkg-plistpat2002-01-172-8/+7 * - Add NOPORTDOCS support (pkg-plist)pat2002-01-172-10/+8 * Remove tcs.kuriyama2002-01-081-1/+0 * Bell-labs is not distributing Plan-9 (and tcs) from anonymous ftp as did before.kuriyama2002-01-085-43/+0 * Remove converter/gb2jis,which is in chinese/ now, by MAINTAINER's request.clive2002-01-086-46/+0 * Update to version 1.0kevlo2001-12-226-8/+34 * Backout previous change - it seems that new revision of the patch doesn'tsobomax2001-12-201-17/+8 * Don't filter libc_r on 5-CURRENT.sobomax2001-12-201-8/+17 * Upgrade to 0.11jesper2001-12-092-2/+2 * Update to 20011018 releasekris2001-11-304-15/+19 * add dosunixijliao2001-11-176-0/+36 * Update to 0.4.5.knu2001-11-163-13/+6 * Maintainer is now committer so change to new email address.pat2001-11-151-1/+1 * Don't link in libc - FreeBSD doesn't need this.sobomax2001-10-312-6/+26 * Don't link in libc - FreeBSD doesn't need this.sobomax2001-10-311-4/+14 * Fix bug with buffer enlargementache2001-10-302-0/+35 * Update to 1.24, add RUN_DEPENDS, add a manpage, sort manpage list,tobez2001-10-272-9/+21 * Remove dead WWW.sobomax2001-10-231-2/+0 * Remove a redundant trailing space.knu2001-10-211-1/+1 * upgrade to 1.1ijliao2001-10-143-2/+99 * (1) Drop maintainership.kuriyama2001-10-062-2/+2 * Fix iconv issue.demon2001-10-052-0/+14 * - update to 1.3petef2001-10-032-5/+4 * - fix build error on bento (emtpy directory left behind)mharo2001-09-193-2/+4 * Bump the PORTREVISION's of the ports which install architectureknu2001-09-181-0/+1 * Update to 0.201.tobez2001-09-172-2/+2 * Don't create ${PREFIX}/doc, which isn't used anyway.asami2001-09-171-2/+2 * Initial import of py-iconv-0.1.2.kevlo2001-09-176-0/+36 * Convert::ASN1 encodes and decodes ASN.1 data structures using BER/DER rules.mharo2001-09-126-0/+39 * Bump png majorache2001-09-111-1/+1 * Set DIST_SUBDIR=KDEdemon2001-09-112-1/+2 * Upgrade to 3.6.demon2001-09-098-167/+172 * add gbase 0.5petef2001-09-097-0/+55 * Use ${PERL} instead of perldwcjr2001-09-042-15/+16 * add p5-Convert-ASCII-Armourijliao2001-08-296-0/+39 * - Remove useless USE_LIBTOOL;sobomax2001-08-279-52/+123 * Upgrade to 1.7... Run included tests after the build... Maintainersmi2001-08-267-40/+76 * Reassign MAINTAINER to kde@FreeBSD.org, a group formed specifically towill2001-08-252-2/+2 * Add psiconv 0.8.2, a conversion utility to convert Psion 5(MX) files intosobomax2001-08-219-0/+114 * - NOPORTDOCS support for pkg-plistsada2001-08-211-12/+12 * Support NOPORTDOCSlioux2001-08-171-2/+2 * Update converters/p5-Text-Iconv to 1.2.tobez2001-08-164-4/+9 * *sigh* They changed the path to the tarballs again. This was verifiedwill2001-08-161-1/+1 * Update to KDE 2.2:will2001-08-151-0/+1 * Upgrade converters/p5-Convert-UUlib to 0.2.tobez2001-08-143-8/+7 * o Update to 1.1lioux2001-08-084-8/+12 * Update to 0.3.3.knu2001-08-022-2/+2 * add utf8convijliao2001-07-316-0/+31 * Update port to base64-1.3.bmah2001-07-253-15/+7 * Add ruby-dump.rb, a binary data dumper module for Ruby.knu2001-07-206-0/+38 * Add one missing file.demon2001-07-051-0/+1 * Remove patch that isn't necessary anymore. This should fix build on -current.sobomax2001-06-291-14/+0 * Update to version 0.12kevlo2001-06-022-2/+2 * add more master sitesijliao2001-05-301-1/+3 * Unbroke on 5-CURRENT.sobomax2001-05-291-0/+14 * Add Russian messages.demon2001-05-214-0/+580 * Fix plist.kuriyama2001-05-212-0/+2 * Upgrade to latest version:vanilla2001-05-202-2/+2 * SWitch maintainership of core GNOME ports to a small group ofade2001-05-121-1/+1 * Upgrade to latest version:vanilla2001-05-102-3/+3 * Fix plist.kuriyama2001-05-101-0/+1 * MAINTAINER doesn't use FreeBSD any more.fenner2001-04-221-2/+0 * Remove empty directories on uninstall.steve2001-04-201-0/+4 * Update to 0.3.2.knu2001-04-202-2/+2 * - Update to 0.84.okazaki2001-04-2010-46/+46 * Remove empty directories on uninstall.steve2001-04-155-3/+9 * Upgrade to version 0.10kevlo2001-04-112-3/+3 * Move ruby-sha1 from converters to security.knu2001-04-076-44/+0 * Upgrade to 0.03.vanilla2001-04-052-3/+2 * Overhaul QT/KDE support:will2001-04-032-19/+4 * Update to 1.6.1.sobomax2001-04-025-22/+47 * add siconvijliao2001-03-277-0/+60 * Bring in my fixes for KDE2 for users of XFree86 4.0.x. Basically, whatwill2001-03-252-41/+6 * Update to tnef 1.0kris2001-03-202-2/+2 * Update to 0.3.1.1.knu2001-03-182-2/+2 * new port p5-Boulderandreas2001-03-146-0/+64 * Bring in my KDE 2.1 + X 4.0.2 + threads "fixes". WARNING: Doesn't quitewill2001-03-131-4/+27 * Update to tnef 0.16kris2001-03-132-2/+2 * Add mimelib 1.1.2, a C++ class library for manipulating messages inwill2001-03-116-0/+66 * Add a "}" to Makefile, and add "-liconv" to CONFIGURE_ARGV.vanilla2001-03-101-1/+1 * Update to 20001206 version. There are only 3 trivial changes to thekris2001-03-102-3/+3 * Add the kdesupport11 directory.steve2001-03-081-0/+1 * add gb2jis, convert GuoBiao Hanzi to JIS Kanjiijliao2001-03-077-0/+47 * Attempt to fix conflicts with a local getopt.h (specifically, the fix iswill2001-03-05