diff options
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/e-cal-model-tasks.c | 12 |
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 { |