treeview: add the separator style class to the tree view separator lines

This commit is contained in:
Cosimo Cecchi 2011-03-17 17:08:41 -04:00
parent f7ee81bff8
commit 151cf7204b

View File

@ -5122,11 +5122,18 @@ gtk_tree_view_bin_draw (GtkWidget *widget,
else
{
if (is_separator)
gtk_render_line (context, cr,
cell_area.x,
cell_area.y + cell_area.height / 2,
cell_area.x + cell_area.width,
cell_area.y + cell_area.height / 2);
{
gtk_style_context_save (context);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_SEPARATOR);
gtk_render_line (context, cr,
cell_area.x,
cell_area.y + cell_area.height / 2,
cell_area.x + cell_area.width,
cell_area.y + cell_area.height / 2);
gtk_style_context_restore (context);
}
else
_gtk_tree_view_column_cell_render (column,
cr,