forked from AuroraMiddleware/gtk
treeview: Remove unnecessary accessible_expanded()
Instead, just call remove_state().
This commit is contained in:
parent
c7b82c2cea
commit
0005d820c7
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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__ */
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user