mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
treeview: Set the new flags when rendering the cell
This commit is contained in:
parent
b6aa011c43
commit
175043bd8d
@ -4892,6 +4892,16 @@ gtk_tree_view_bin_draw (GtkWidget *widget,
|
||||
else
|
||||
flags &= ~GTK_CELL_RENDERER_FOCUSED;
|
||||
|
||||
if (GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_IS_PARENT))
|
||||
flags |= GTK_CELL_RENDERER_EXPANDABLE;
|
||||
else
|
||||
flags &= ~GTK_CELL_RENDERER_EXPANDABLE;
|
||||
|
||||
if (node->children)
|
||||
flags |= GTK_CELL_RENDERER_EXPANDED;
|
||||
else
|
||||
flags &= ~GTK_CELL_RENDERER_EXPANDED;
|
||||
|
||||
background_area.x = cell_offset;
|
||||
background_area.width = width;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user