Keeping event widget sorted inside views.
Still missing to fix GcalWeekView, but that one needs reworking.
This commit is contained in:
committed by
Rene A. Viant Moran
parent
0e39c4f618
commit
ddae6624a3
@@ -730,7 +730,9 @@ gcal_month_view_add (GtkContainer *container,
|
|||||||
new_child->widget = widget;
|
new_child->widget = widget;
|
||||||
new_child->hidden_by_me = FALSE;
|
new_child->hidden_by_me = FALSE;
|
||||||
|
|
||||||
priv->days[day] = g_list_append (priv->days[day], new_child);
|
priv->days[day] = g_list_insert_sorted (priv->days[day],
|
||||||
|
new_child,
|
||||||
|
gcal_compare_event_widget_by_date);
|
||||||
gtk_widget_set_parent (widget, GTK_WIDGET (container));
|
gtk_widget_set_parent (widget, GTK_WIDGET (container));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -427,7 +427,11 @@ gcal_year_view_add (GtkContainer *container,
|
|||||||
new_child->widget = widget;
|
new_child->widget = widget;
|
||||||
new_child->hidden_by_me = FALSE;
|
new_child->hidden_by_me = FALSE;
|
||||||
|
|
||||||
priv->months[date->month - 1] = g_list_append (priv->months[date->month - 1], new_child);
|
priv->months[date->month - 1] =
|
||||||
|
g_list_insert_sorted (priv->months[date->month - 1],
|
||||||
|
new_child,
|
||||||
|
gcal_compare_event_widget_by_date);
|
||||||
|
|
||||||
gtk_widget_set_parent (widget, GTK_WIDGET (container));
|
gtk_widget_set_parent (widget, GTK_WIDGET (container));
|
||||||
|
|
||||||
g_free (date);
|
g_free (date);
|
||||||
|
|||||||
Reference in New Issue
Block a user