month-cell: only update label when date changes

If the date is the same, we don't need to update the label.
This might cause an infinite resize loop.
This commit is contained in:
Georges Basile Stavracas Neto
2017-10-31 01:11:26 -02:00
parent 907e55ccbe
commit 5977eeefc8
+3
View File
@@ -470,6 +470,9 @@ gcal_month_cell_set_date (GcalMonthCell *self,
g_return_if_fail (GCAL_IS_MONTH_CELL (self));
if (self->date && date && datetime_compare_date (self->date, date) == 0)
return;
gcal_clear_datetime (&self->date);
self->date = g_date_time_ref (date);