1045
1045
EggListBoxPrivate *priv = list_box->priv;
1046
1046
GtkAllocation allocation = {0};
1047
1047
GtkStyleContext* context;
1048
1049
ChildFlags flags[3], *found;
1052
1053
gtk_widget_get_allocation (GTK_WIDGET (list_box), &allocation);
1053
1054
context = gtk_widget_get_style_context (GTK_WIDGET (list_box));
1054
1056
gtk_render_background (context, cr, (gdouble) 0, (gdouble) 0, (gdouble) allocation.width, (gdouble) allocation.height);
1057
1059
if (priv->selected_child != NULL)
1059
1061
found = child_flags_find_or_add (flags, &flags_length, priv->selected_child);
1063
1065
if (priv->prelight_child != NULL)
1065
1067
found = child_flags_find_or_add (flags, &flags_length, priv->prelight_child);
1069
1071
if (priv->active_child != NULL && priv->active_child_active)
1071
1073
found = child_flags_find_or_add (flags, &flags_length, priv->active_child);
1075
1077
for (i = 0; i < flags_length; i++)