[gtk/wip/otte/listview: 2/150] a11y: We can peek here
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/listview: 2/150] a11y: We can peek here
- Date: Sun, 8 Dec 2019 05:28:34 +0000 (UTC)
commit e3e8d72e729d2b1568eff157d7b397a7c711f0ff
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]