[gnome-calendar] month-view: correctly check if dates are different



commit 266474c1e3b91fa83c957264aaaa85963e2ee3b4
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed May 18 11:27:11 2016 -0300

    month-view: correctly check if dates are different
    
    The previous commit introduced many changes in the way
    the conditions are done. Unfortunately, one of these
    conditions was only partially fixed.
    
    Fix that by using the correct function to compare dates.

 src/gcal-month-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 7dde81e..f3735ff 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -288,7 +288,7 @@ show_popover_for_position (GcalMonthView *view,
         }
 
       /* Only setup an end date when days are different */
-      if (!g_date_time_compare (start_dt, end_dt))
+      if (!g_date_time_equal (start_dt, end_dt))
         {
           GDateTime *tmp_dt;
 


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