diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c index b48129512e..6fba88fbb5 100644 --- a/gtk/a11y/gtktreeviewaccessible.c +++ b/gtk/a11y/gtktreeviewaccessible.c @@ -2709,20 +2709,3 @@ _gtk_tree_view_accessible_remove_state (GtkTreeView *treeview, _gtk_cell_accessible_state_changed (cell, 0, state); } } - -void -_gtk_tree_view_accessible_expanded (GtkTreeView *treeview, - GtkRBTree *tree, - GtkRBNode *node) -{ - AtkObject *obj; - - obj = _gtk_widget_peek_accessible (GTK_WIDGET (treeview)); - if (obj == NULL) - return; - - _gtk_tree_view_accessible_add_state (treeview, - tree, node, - GTK_CELL_RENDERER_EXPANDED); -} - diff --git a/gtk/a11y/gtktreeviewaccessible.h b/gtk/a11y/gtktreeviewaccessible.h index aa23536d7f..5a23f8321c 100644 --- a/gtk/a11y/gtktreeviewaccessible.h +++ b/gtk/a11y/gtktreeviewaccessible.h @@ -81,9 +81,6 @@ void _gtk_tree_view_accessible_remove_state (GtkTreeView *tree GtkRBNode *node, GtkCellRendererState state); -void _gtk_tree_view_accessible_expanded (GtkTreeView *treeview, - GtkRBTree *tree, - GtkRBNode *node); G_END_DECLS #endif /* __GTK_TREE_VIEW_ACCESSIBLE_H__ */ diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 22cc8b8d2e..665335a931 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -12762,7 +12762,9 @@ gtk_tree_view_real_expand_row (GtkTreeView *tree_view, open_all); _gtk_tree_view_accessible_add (tree_view, node->children, NULL); - _gtk_tree_view_accessible_expanded (tree_view, tree, node); + _gtk_tree_view_accessible_add_state (tree_view, + tree, node, + GTK_CELL_RENDERER_EXPANDED); if (animate) {