treeview: add the separator style class to the tree view separator lines
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user