treeview: Set the new flags when rendering the cell

This commit is contained in:
Benjamin Otte 2011-12-11 02:52:26 +01:00
parent b6aa011c43
commit 175043bd8d

View File

@ -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;