From 266474c1e3b91fa83c957264aaaa85963e2ee3b4 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 18 May 2016 11:27:11 -0300 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c index 7dde81e4..f3735ffc 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;