[evolution/gnome-3-36] I#929 - Allow calendar week view to start on Sunday
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-36] I#929 - Allow calendar week view to start on Sunday
- Date: Tue, 19 May 2020 06:43:29 +0000 (UTC)
commit 59be1b0a736023185d04c20f1d6c154eeb1bc147
Author: Bryan Dunsmore <bryan dunsmore outlook com>
Date: Sun May 17 15:23:40 2020 -0500
I#929 - Allow calendar week view to start on Sunday
Previously, the week view would always start on Saturday if the week
starts on Sunday. This restricts this behavior to the month view only.
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/929
Closes https://gitlab.gnome.org/GNOME/evolution/-/merge_requests/55
src/calendar/gui/e-week-view.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/calendar/gui/e-week-view.c b/src/calendar/gui/e-week-view.c
index f4b12f07c3..514b0cc9bd 100644
--- a/src/calendar/gui/e-week-view.c
+++ b/src/calendar/gui/e-week-view.c
@@ -2633,12 +2633,10 @@ e_week_view_recalc_display_start_day (EWeekView *week_view)
* is Sunday. */
display_start_day = week_start_day;
- if (display_start_day == G_DATE_SUNDAY) {
- if (!e_week_view_get_multi_week_view (week_view))
- display_start_day = G_DATE_SATURDAY;
-
- if (e_week_view_get_compress_weekend (week_view))
- display_start_day = G_DATE_SATURDAY;
+ if (display_start_day == G_DATE_SUNDAY &&
+ e_week_view_get_multi_week_view (week_view) &&
+ e_week_view_get_compress_weekend (week_view)) {
+ display_start_day = G_DATE_SATURDAY;
}
changed = (display_start_day != week_view->priv->display_start_day);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]