[evolution] Bug 788686 - To Do bar higlights as overdue tasks with DATE-only Due
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 788686 - To Do bar higlights as overdue tasks with DATE-only Due
- Date: Mon, 9 Oct 2017 17:08:13 +0000 (UTC)
commit 90f6b0d3103e0d3c7fd382d23980d732bff92caf
Author: Milan Crha <mcrha redhat com>
Date: Mon Oct 9 19:07:53 2017 +0200
Bug 788686 - To Do bar higlights as overdue tasks with DATE-only Due
src/calendar/gui/e-to-do-pane.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/calendar/gui/e-to-do-pane.c b/src/calendar/gui/e-to-do-pane.c
index 4cfff19..bc0f923 100644
--- a/src/calendar/gui/e-to-do-pane.c
+++ b/src/calendar/gui/e-to-do-pane.c
@@ -742,7 +742,8 @@ etdp_get_comp_colors (EToDoPane *to_do_pane,
now = icaltime_current_time_with_zone (default_zone);
- if (icaltime_compare (itt, now) <= 0) {
+ if ((dt.value->is_date && icaltime_compare_date_only (itt, now) < 0) ||
+ (!dt.value->is_date && icaltime_compare (itt, now) <= 0)) {
bgcolor = to_do_pane->priv->overdue_color;
} else if (out_nearest_due) {
time_t due_tt;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]