treeview: Set expandable flag from treeview

... instead of trying to update it manually.
This commit is contained in:
Benjamin Otte
2011-12-12 15:30:47 +01:00
parent 9e9533fc88
commit 82a9f6faa0
2 changed files with 8 additions and 146 deletions

View File

@ -8930,9 +8930,15 @@ gtk_tree_view_row_has_child_toggled (GtkTreeModel *model,
goto done;
if (has_child)
GTK_RBNODE_SET_FLAG (node, GTK_RBNODE_IS_PARENT);
{
GTK_RBNODE_SET_FLAG (node, GTK_RBNODE_IS_PARENT);
_gtk_tree_view_accessible_add_state (tree_view, tree, node, GTK_CELL_RENDERER_EXPANDABLE);
}
else
GTK_RBNODE_UNSET_FLAG (node, GTK_RBNODE_IS_PARENT);
{
GTK_RBNODE_UNSET_FLAG (node, GTK_RBNODE_IS_PARENT);
_gtk_tree_view_accessible_remove_state (tree_view, tree, node, GTK_CELL_RENDERER_EXPANDABLE);
}
if (has_child && tree_view->priv->is_list)
{