aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-01-09 09:22:57 +0800
committerIain Holmes <iain@src.gnome.org>2001-01-09 09:22:57 +0800
commit56fb054ea453c7e8cf800dd3e6b9d6f0ff9d1fdb (patch)
treee8c88afa18229f5d30c6c204b7638ba3eb2221ea
parent5670e3e662649d9395db788c9932d937a97df729 (diff)
downloadgsoc2013-evolution-56fb054ea453c7e8cf800dd3e6b9d6f0ff9d1fdb.tar
gsoc2013-evolution-56fb054ea453c7e8cf800dd3e6b9d6f0ff9d1fdb.tar.gz
gsoc2013-evolution-56fb054ea453c7e8cf800dd3e6b9d6f0ff9d1fdb.tar.bz2
gsoc2013-evolution-56fb054ea453c7e8cf800dd3e6b9d6f0ff9d1fdb.tar.lz
gsoc2013-evolution-56fb054ea453c7e8cf800dd3e6b9d6f0ff9d1fdb.tar.xz
gsoc2013-evolution-56fb054ea453c7e8cf800dd3e6b9d6f0ff9d1fdb.tar.zst
gsoc2013-evolution-56fb054ea453c7e8cf800dd3e6b9d6f0ff9d1fdb.zip
Mark tasks completed
svn path=/trunk/; revision=7309
-rw-r--r--calendar/ChangeLog3
-rw-r--r--calendar/gui/calendar-summary.c10
2 files changed, 11 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index fd18238a6d..ae94af05d0 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -2,7 +2,8 @@
* gui/calendar-summary.c (generate_html_summary): Get the tasks
correctly.
-
+ (generate_html_summary): Mark the tasks as completed if so.
+
2001-01-08 Damon Chaplin <damon@helixcode.com>
* gui/Makefile.am: added new source files for the Tasks folders.
diff --git a/calendar/gui/calendar-summary.c b/calendar/gui/calendar-summary.c
index 8b401929d3..6948b72df7 100644
--- a/calendar/gui/calendar-summary.c
+++ b/calendar/gui/calendar-summary.c
@@ -151,6 +151,7 @@ generate_html_summary (CalSummary *summary)
CalComponent *comp;
CalComponentText text;
CalClientGetStatus status;
+ struct icaltimetype *completed;
char *uid;
char *tmp2;
@@ -160,8 +161,15 @@ generate_html_summary (CalSummary *summary)
continue;
cal_component_get_summary (comp, &text);
+ cal_component_get_completed (comp, &completed);
- tmp2 = g_strdup_printf ("<li>%s</li>", text.value);
+ if (completed == NULL) {
+ tmp2 = g_strdup_printf ("<li>%s</li>", text.value);
+ } else {
+ tmp2 = g_strdup_printf ("<li><strike>%s</strike></li>",
+ text.value);
+ cal_component_free_icaltimetype (completed);
+ }
tmp = ret_html;
ret_html = g_strconcat (ret_html, tmp2, NULL);