[gtk] a11y: We can peek here
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] a11y: We can peek here
- Date: Mon, 9 Dec 2019 15:45:25 +0000 (UTC)
commit 336d652be547b7548dc3e6b6760c318768998dd7
Author: Benjamin Otte <otte redhat com>
Date: Sun Dec 8 06:26:58 2019 +0100
a11y: We can peek here
Avoids instantiating a11y objects when we don't need to.
gtk/a11y/gtktreeviewaccessible.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c
index 2e7a67fb7f..eb9e6032e8 100644
--- a/gtk/a11y/gtktreeviewaccessible.c
+++ b/gtk/a11y/gtktreeviewaccessible.c
@@ -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++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]