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:
Erick Pérez Castellanos
2015-01-20 13:11:59 -05:00
parent 0770a12ea9
commit d53a3570bf
2 changed files with 42 additions and 0 deletions
+3
View File
@@ -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__ */