[evolution] 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] I#929 - Allow calendar week view to start on Sunday
- Date: Tue, 19 May 2020 06:22:00 +0000 (UTC)
commit 7ff64b74f798342807ed86f7269f3acc5cef5481
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]