[gnome-calendar] month-view: sort single-day event widgets by start date
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: sort single-day event widgets by start date
- Date: Sat, 20 Dec 2014 14:14:33 +0000 (UTC)
commit 4bef6148f996102a459d7414a22cfcc624cec2db
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Fri Dec 19 22:09:42 2014 -0500
month-view: sort single-day event widgets by start date
This guarantee that events widgets appear sorted by its start date on
the overflow popover
src/gcal-month-view.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 87edaa7..515b2b9 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -1636,8 +1636,7 @@ gcal_month_view_add (GtkContainer *container,
date = gcal_event_widget_get_date (GCAL_EVENT_WIDGET (widget));
l = g_hash_table_lookup (priv->single_day_children, GINT_TO_POINTER (date->day));
- /* FIXME add sorted */
- l = g_list_append (l, widget);
+ l = g_list_insert_sorted (l, widget, (GCompareFunc) gcal_event_widget_compare_by_start_date);
if (g_list_length (l) == 1)
g_hash_table_insert (priv->single_day_children, GINT_TO_POINTER (date->day), l);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]