From 3f57fb3153629cc51d0ebd97511299ae9005cf09 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 11 Sep 2000 03:05:14 +0000 Subject: Relying on the status field is somewhat faulty since it is related to 2000-09-10 JP Rosevear * gui/calendar-model.c (get_is_complete): Relying on the status field is somewhat faulty since it is related to group scheduling svn path=/trunk/; revision=5308 --- calendar/gui/calendar-model.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c index 570337aa79..57193f45c9 100644 --- a/calendar/gui/calendar-model.c +++ b/calendar/gui/calendar-model.c @@ -543,16 +543,10 @@ get_has_alarms (CalComponent *comp) static gboolean get_is_complete (CalComponent *comp) { - const char *status; - - cal_component_get_status (comp, &status); - return (status && !strcmp (status, "COMPLETED")); - -#if 0 struct icaltimetype *t; gboolean retval; - /* I don't think this is as reliable, especially at the moment when + /* May not be reliable, especially at the moment when we can't set a Completed Date to None. */ cal_component_get_completed (comp, &t); retval = (t != NULL); @@ -561,7 +555,6 @@ get_is_complete (CalComponent *comp) cal_component_free_icaltimetype (t); return retval; -#endif } /* Returns whether a calendar component is overdue. -- cgit v1.2.3