[evolution/gnome-3-22] Bug 773033 - Switch from Work Week to Week view on 'Select today', if needed
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-22] Bug 773033 - Switch from Work Week to Week view on 'Select today', if needed
- Date: Wed, 19 Oct 2016 16:09:36 +0000 (UTC)
commit d715405b954f33678472ccd1af05945d2c0094ff
Author: Milan Crha <mcrha redhat com>
Date: Wed Oct 19 18:04:49 2016 +0200
Bug 773033 - Switch from Work Week to Week view on 'Select today', if needed
modules/calendar/e-cal-shell-content.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/modules/calendar/e-cal-shell-content.c b/modules/calendar/e-cal-shell-content.c
index 114ab8d..1feb1b8 100644
--- a/modules/calendar/e-cal-shell-content.c
+++ b/modules/calendar/e-cal-shell-content.c
@@ -452,6 +452,9 @@ cal_shell_content_datepicker_selection_changed_cb (ECalendarItem *calitem,
cal_shell_content_clamp_for_whole_weeks (calitem->week_start_day, &sel_start,
&sel_end, cal_shell_content->priv->current_view == E_CAL_VIEW_KIND_MONTH);
e_cal_shell_content_change_view (cal_shell_content,
cal_shell_content->priv->current_view, &sel_start, &sel_end, FALSE);
+ } else if (cal_shell_content->priv->current_view == E_CAL_VIEW_KIND_WORKWEEK) {
+ cal_shell_content_clamp_for_whole_weeks (calitem->week_start_day, &sel_start,
&sel_end, TRUE);
+ e_cal_shell_content_change_view (cal_shell_content, E_CAL_VIEW_KIND_WEEK, &sel_start,
&sel_end, FALSE);
} else {
e_cal_shell_content_change_view (cal_shell_content, E_CAL_VIEW_KIND_DAY, &sel_start,
&sel_end, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]