forked from AuroraMiddleware/gtk
a11y: We can peek here
Avoids instantiating a11y objects when we don't need to.
This commit is contained in:
parent
d3e8678955
commit
336d652be5
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user