diff options
author | Eric Zhao <eric.zhao@sun.com> | 2004-04-22 19:08:24 +0800 |
---|---|---|
committer | Yuedong Du <york@src.gnome.org> | 2004-04-22 19:08:24 +0800 |
commit | 09d810bba8f02f7226242ced9cfe06586dc3440f (patch) | |
tree | 9a4a4050c448146224f7eaae1aa596b32159bde0 /a11y | |
parent | 5effa08f248ddea3bf94314220b8dfae19d68a6c (diff) | |
download | gsoc2013-evolution-09d810bba8f02f7226242ced9cfe06586dc3440f.tar.gz gsoc2013-evolution-09d810bba8f02f7226242ced9cfe06586dc3440f.tar.zst gsoc2013-evolution-09d810bba8f02f7226242ced9cfe06586dc3440f.zip |
Fixes #48974.
2004-04-22 Eric Zhao <eric.zhao@sun.com>
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
Diffstat (limited to 'a11y')
-rw-r--r-- | a11y/e-table/gal-a11y-e-tree.c | 5 |
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; } |