a11y: We can peek here

Avoids instantiating a11y objects when we don't need to.
This commit is contained in:
Benjamin Otte 2019-12-08 06:26:58 +01:00
parent d3e8678955
commit 336d652be5

View File

@ -1730,7 +1730,9 @@ _gtk_tree_view_accessible_changed (GtkTreeView *treeview,
GtkTreeViewAccessible *accessible;
guint i;
accessible = GTK_TREE_VIEW_ACCESSIBLE (gtk_widget_get_accessible (GTK_WIDGET (treeview)));
accessible = GTK_TREE_VIEW_ACCESSIBLE (_gtk_widget_peek_accessible (GTK_WIDGET (treeview)));
if (accessible == NULL)
return;
for (i = 0; i < gtk_tree_view_get_n_columns (treeview); i++)
{