aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/calendar-model.c')
-rw-r--r--calendar/gui/calendar-model.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c
index 8988748929..4e47a90f25 100644
--- a/calendar/gui/calendar-model.c
+++ b/calendar/gui/calendar-model.c
@@ -567,12 +567,39 @@ get_is_overdue (CalComponent *comp)
cal_component_get_due (comp, &dt);
+ /* First, do we have a due date? */
+
if (!dt.value)
retval = FALSE;
else {
-
+ struct icaltimetype *completed;
+ time_t t;
+
+ /* Second, is it already completed? */
+
+ cal_component_get_completed (comp, &completed);
+
+ if (completed) {
+ retval = FALSE;
+
+ cal_component_free_icaltimetype (completed);
+ goto out;
+ }
+
+ /* Third, are we overdue as of right now?
+ *
+ * FIXME: should we check the PERCENT as well? If it is at 100%
+ * but the COMPLETED property is not set, is the component
+ * really overdue?
+ **/
+
+ t = time_from_icaltimetype (*dt.value);
+
+ /* FIXME */
}
+ out:
+
cal_component_free_datetime (&dt);
return retval;
s now available, with over 90 bugfixes and compatibility i...Dima Panov2021-03-081-5/+5 * Please welcome LibreOffice suite 7.1.0 release!Dima Panov2021-02-041-5/+5 * LibreOffice 7.0.4 is here, with over 110 bugfixes and compatibility improveme...Dima Panov2020-12-181-5/+5 * editors/libreoffice-*: use release-rolled i18n tarballsDima Panov2020-10-291-5/+5 * Update LibreOffice suite to 7.0.3 releaseDima Panov2020-10-291-5/+5 * LibreOffice 7.0.2 is now available, with over 130 bugfixes and compatibility ...Dima Panov2020-10-091-5/+5 * - Update LibreOffice suite to 7.0.1 releaseDima Panov2020-09-041-5/+5 * LibreOffice suite: update to 7.0.0 releaseDima Panov2020-08-161-5/+5 * Update LibreOffice suite to 6.4.6 maintenance releaseDima Panov2020-08-141-5/+5 * Update LibreOffice suite to 6.4.5 releaseDima Panov2020-07-071-5/+5 * FreeBSD Office team is proud to announce LibreOffice 6.4.4, latest stable rel...Dima Panov2020-06-131-5/+5 * Update LibreOffice to 6.3.6 stable releaseDima Panov2020-05-161-5/+5 * - Update to 6.3.4Li-Wen Hsu2019-12-131-5/+5 * - Update to 6.3.3Li-Wen Hsu2019-11-011-5/+5 * - Update to 6.3.2Li-Wen Hsu2019-09-281-5/+5 * - Update to 6.3.1Li-Wen Hsu2019-09-06