diff options
author | Federico Mena Quintero <federico@src.gnome.org> | 2000-08-13 09:45:40 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-08-13 09:45:40 +0800 |
commit | 6db2c0fb510e4a3d4ba22bd9e2051d6380422ff7 (patch) | |
tree | 906a8965e892f3a0a6ac0c58ac150365a5cd9745 /calendar/gui/calendar-model.c | |
parent | 85184f711c30f2436a5341b595860fc6d4c74a7d (diff) | |
download | gsoc2013-evolution-6db2c0fb510e4a3d4ba22bd9e2051d6380422ff7.tar.gz gsoc2013-evolution-6db2c0fb510e4a3d4ba22bd9e2051d6380422ff7.tar.zst gsoc2013-evolution-6db2c0fb510e4a3d4ba22bd9e2051d6380422ff7.zip |
Sync - Federico
svn path=/trunk/; revision=4789
Diffstat (limited to 'calendar/gui/calendar-model.c')
-rw-r--r-- | calendar/gui/calendar-model.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c index 4e47a90f25..daa85ddcd6 100644 --- a/calendar/gui/calendar-model.c +++ b/calendar/gui/calendar-model.c @@ -595,7 +595,10 @@ get_is_overdue (CalComponent *comp) t = time_from_icaltimetype (*dt.value); - /* FIXME */ + if (dt < time (NULL)) + retval = TRUE; + else + retval = FALSE; } out: @@ -679,18 +682,12 @@ calendar_model_value_at (ETableModel *etm, int col, int row) case CAL_COMPONENT_FIELD_OVERDUE: return GINT_TO_POINTER (get_is_overdue (comp)); - if (ico->percent != 100 - && ico->dtend > 0 - && ico->dtend < time (NULL)) - return GINT_TO_POINTER (TRUE); - return GINT_TO_POINTER (FALSE); - case ICAL_OBJECT_FIELD_COLOR: - if (ico->percent != 100 - && ico->dtend > 0 - && ico->dtend < time (NULL)) + case CAL_COMPONENT_FIELD_COLOR: + if (get_is_overdue (comp)) return "red"; - return NULL; + else + return NULL; default: g_message ("calendar_model_value_at(): Requested invalid column %d", col); |