[evolution] Bug 773033 - Switch from Work Week to Week view on 'Select today', if needed



commit 2f253272ae7a57ac0454fb5e7b9d53723159e588
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

 src/modules/calendar/e-cal-shell-content.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/modules/calendar/e-cal-shell-content.c b/src/modules/calendar/e-cal-shell-content.c
index 6394dae..64c2343 100644
--- a/src/modules/calendar/e-cal-shell-content.c
+++ b/src/modules/calendar/e-cal-shell-content.c
@@ -450,6 +450,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]