From 09d810bba8f02f7226242ced9cfe06586dc3440f Mon Sep 17 00:00:00 2001 From: Eric Zhao Date: Thu, 22 Apr 2004 11:08:24 +0000 Subject: Fixes #48974. 2004-04-22 Eric Zhao Fixes #48974. * gal/a11y/e-table/gal-a11y-e-tree.c: (init_child_item): add a check to see whether the corresponding AtkObject of ETableItem has been initialized. svn path=/trunk/; revision=25580 --- a11y/e-table/gal-a11y-e-tree.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'a11y/e-table') 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; } -- cgit