[evolution] Show 8 days in the To Do bar



commit 394a70ebb9037a2d47b85a24eb1e32aa37c405ac
Author: Milan Crha <mcrha redhat com>
Date:   Mon Mar 12 16:26:23 2018 +0100

    Show 8 days in the To Do bar
    
    Instead of showing Today + 6 days there, rather show Today + 7 days,
    thus one can see what is planned for Today and for the next week
    of the same week day as well.

 src/calendar/gui/e-to-do-pane.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/calendar/gui/e-to-do-pane.c b/src/calendar/gui/e-to-do-pane.c
index ad432f1..de93c3b 100644
--- a/src/calendar/gui/e-to-do-pane.c
+++ b/src/calendar/gui/e-to-do-pane.c
@@ -32,7 +32,7 @@
 
 #include "e-to-do-pane.h"
 
-#define N_ROOTS 8
+#define N_ROOTS 9
 #define MAX_TOOLTIP_DESCRIPTION_LEN 128
 
 struct _EToDoPanePrivate {
@@ -1344,7 +1344,7 @@ etdp_check_time_changed (EToDoPane *to_do_pane,
 
                tt_begin = icaltime_as_timet_with_zone (itt, zone);
                tt_begin = time_day_begin_with_zone (tt_begin, zone);
-               tt_end = time_add_week_with_zone (tt_begin, 1, zone) - 1;
+               tt_end = time_add_week_with_zone (tt_begin, 1, zone) + (3600 * 24) - 1;
 
                iso_begin_all = isodate_from_time_t (0);
                iso_begin = isodate_from_time_t (tt_begin);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]