aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--a11y/e-table/gal-a11y-e-tree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/a11y/e-table/gal-a11y-e-tree.c b/a11y/e-table/gal-a11y-e-tree.c
index dc7755c6f2..921576b650 100644
--- a/a11y/e-table/gal-a11y-e-tree.c
+++ b/a11y/e-table/gal-a11y-e-tree.c
@@ -33,7 +33,10 @@ init_child_item (GalA11yETree *a11y)
g_return_if_fail (tree);
eti = e_tree_get_item (tree);
if (priv->child_item == NULL) {
- priv->child_item = gal_a11y_e_table_item_new (ATK_OBJECT (a11y),eti, 0);
+ priv->child_item = atk_gobject_accessible_for_object (G_OBJECT (eti));
+ if (!priv->child_item)
+ priv->child_item = gal_a11y_e_table_item_new (ATK_OBJECT (a11y),eti, 0);
+
g_return_if_fail (priv->child_item);
priv->child_item->role = ATK_ROLE_TREE_TABLE;
}