[gnome-calendar] year-view: today button not working



commit 03b2ac9845a4b7d7a1e255c5faf6baaa9c35f299
Author: Isaque Galdino <igaldino gmail com>
Date:   Wed Mar 2 00:01:01 2016 -0300

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 3f35de5..9a22741 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]