year-view: move comparing function from gcal-event-widget.c
The compare_for_single_day() method is reproducing the same functionality from gcal_event_compare(), and the only consumer is the Year View. So, for now, simplify the comparing function and put it in year view file. Also, this commit vastly improves and documents the year view's algorithm to add events to the sidebar list.
This commit is contained in:
@@ -70,9 +70,6 @@ gint gcal_event_widget_compare_by_length (GcalEventWidget *
|
||||
gint gcal_event_widget_compare_by_start_date (GcalEventWidget *widget1,
|
||||
GcalEventWidget *widget2);
|
||||
|
||||
gint gcal_event_widget_compare_for_single_day (GcalEventWidget *widget1,
|
||||
GcalEventWidget *widget2);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GCAL_EVENT_WIDGET_H__ */
|
||||
|
||||
Reference in New Issue
Block a user