event-widget: added compare function
This compare function is made to sort using the same two methods used before but together, giving priority to the longer events. The idea is sort event properly on year-view's sidebar. This function will probably change later.
This commit is contained in:
@@ -117,6 +117,9 @@ 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