From 03b2ac9845a4b7d7a1e255c5faf6baaa9c35f299 Mon Sep 17 00:00:00 2001 From: Isaque Galdino Date: Wed, 2 Mar 2016 00:01:01 -0300 Subject: [PATCH] year-view: today button not working Today button in the headerbar was not working when pressed in the current year. Button logic to update side panel was only triggered if there was a change in the chosen year. Fixed to update side panel whenever date is changed. https://bugzilla.gnome.org/show_bug.cgi?id=762463 --- src/gcal-year-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c index 3f35de53..9a227415 100644 --- a/src/gcal-year-view.c +++ b/src/gcal-year-view.c @@ -151,7 +151,7 @@ static void update_date (GcalYearView *year_view, icaltimetype *new_date) { - if (year_view->date != NULL && year_view->date->year != new_date->year && year_view->start_selected_date->day != 0) + if (year_view->date != NULL && icaltime_compare_date (year_view->date, new_date) && year_view->start_selected_date->day != 0) reset_sidebar (year_view); g_clear_pointer (&year_view->date, g_free);