year-view: fix all-day events

icaltime_compare() keeps doing its own work as it see fits
This commit is contained in:
Erick Pérez Castellanos
2015-01-22 14:02:06 -05:00
parent 5071b94b14
commit bb41d9dc76
+2
View File
@@ -308,6 +308,8 @@ update_sidebar (GcalYearView *year_view)
cloned_child,
(GCompareFunc) gcal_event_widget_compare_for_single_day);
date.is_date = dt_start->is_date;
start_comparison = icaltime_compare (*dt_start, date);
end_comparison = icaltime_compare (second_date, *dt_end);
if (start_comparison == -1 && end_comparison == -1)
gtk_style_context_add_class (gtk_widget_get_style_context (cloned_child), "slanted");