diff options
author | JP Rosevear <jpr@novell.com> | 2005-01-04 03:52:39 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2005-01-04 03:52:39 +0800 |
commit | 4ed097e01144880fa6b929bedd35792cafc45b1d (patch) | |
tree | c5adcee80cd969d0fb6bae590ef6536cf04cf28a /calendar/gui | |
parent | 89441016f3d9e975f1a336b44240b54b0ae93e2b (diff) | |
download | gsoc2013-evolution-4ed097e01144880fa6b929bedd35792cafc45b1d.tar.gz 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
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-cal-model-tasks.c | 12 |
1 files changed, 11 insertions, 1 deletions
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 { |