From f9321d99f06cc1207b1b5bcf3e5600f31853eb9d Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 23 Mar 2022 10:12:42 +0100 Subject: [PATCH] Calendar: Minicalendar shown after search in the List View The List View doesn't have the minicalendar shown, because it doesn't use it, thus showing the minicalendar after search in the List View is wrong. --- src/modules/calendar/e-cal-shell-view.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/calendar/e-cal-shell-view.c b/src/modules/calendar/e-cal-shell-view.c index 5684f1fc14..5b5f3b6b09 100644 --- a/src/modules/calendar/e-cal-shell-view.c +++ b/src/modules/calendar/e-cal-shell-view.c @@ -225,8 +225,12 @@ cal_shell_view_execute_search (EShellView *shell_view) gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), TRUE); gtk_widget_hide (GTK_WIDGET (calendar)); } else { + ECalViewKind view_kind; + + view_kind = e_cal_shell_content_get_current_view_id (cal_shell_content); + /* Ensure the date navigator is visible. */ - gtk_widget_show (GTK_WIDGET (calendar)); + gtk_widget_set_visible (GTK_WIDGET (calendar), view_kind != E_CAL_VIEW_KIND_LIST); e_cal_shell_content_get_current_range (cal_shell_content, &start_range, &end_range); end_range = time_day_end (end_range) - 1; }