From 4ed097e01144880fa6b929bedd35792cafc45b1d Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 3 Jan 2005 19:52:39 +0000 Subject: Fixes #69663 2005-01-03 JP Rosevear 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 --- calendar/ChangeLog | 7 +++++++ calendar/gui/e-cal-model-tasks.c | 12 +++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'calendar') 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 + + 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 * 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 { -- cgit v1.2.3