aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2005-01-04 03:52:39 +0800
committerJP Rosevear <jpr@src.gnome.org>2005-01-04 03:52:39 +0800
commit4ed097e01144880fa6b929bedd35792cafc45b1d (patch)
treec5adcee80cd969d0fb6bae590ef6536cf04cf28a
parent89441016f3d9e975f1a336b44240b54b0ae93e2b (diff)
downloadgsoc2013-evolution-4ed097e01144880fa6b929bedd35792cafc45b1d.tar
gsoc2013-evolution-4ed097e01144880fa6b929bedd35792cafc45b1d.tar.gz
gsoc2013-evolution-4ed097e01144880fa6b929bedd35792cafc45b1d.tar.bz2
gsoc2013-evolution-4ed097e01144880fa6b929bedd35792cafc45b1d.tar.lz
gsoc2013-evolution-4ed097e01144880fa6b929bedd35792cafc45b1d.tar.xz
gsoc2013-evolution-4ed097e01144880fa6b929bedd35792cafc45b1d.tar.zst
gsoc2013-evolution-4ed097e01144880fa6b929bedd35792cafc45b1d.zip
Fixes #69663
2005-01-03 JP Rosevear <jpr@novell.com> Fixes #69663 * gui/e-cal-model-tasks.c (is_complete): look at the percent complete and status properties as well for completeness clues svn path=/trunk/; revision=28221
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-cal-model-tasks.c12
2 files changed, 18 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 938297a423..44488f4f0d 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2005-01-03 JP Rosevear <jpr@novell.com>
+
+ Fixes #69663
+
+ * gui/e-cal-model-tasks.c (is_complete): look at the percent
+ complete and status properties as well for completeness clues
+
2005-01-03 Rodrigo Moya <rodrigo@novell.com>
* gui/e-cal-model.c (e_cal_model_set_time_range): redo the queries
diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c
index 0d36136b51..2ef9420788 100644
--- a/calendar/gui/e-cal-model-tasks.c
+++ b/calendar/gui/e-cal-model-tasks.c
@@ -371,8 +371,18 @@ is_complete (ECalModelComponent *comp_data)
icalproperty *prop;
prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_COMPLETED_PROPERTY);
+ if (prop)
+ return TRUE;
+
+ prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_PERCENTCOMPLETE_PROPERTY);
+ if (prop && icalproperty_get_percentcomplete (prop) == 100)
+ return TRUE;
- return prop ? TRUE : FALSE;
+ prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_STATUS_PROPERTY);
+ if (prop && icalproperty_get_status (prop) == ICAL_STATUS_COMPLETED)
+ return TRUE;
+
+ return FALSE;
}
typedef enum {