mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 23:00:08 +00:00
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;
|
GtkTreeViewAccessible *accessible;
|
||||||
guint i;
|
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++)
|
for (i = 0; i < gtk_tree_view_get_n_columns (treeview); i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user