Index: ChangeLog
===================================================================
--- ChangeLog   （修订版 1233）
+++ ChangeLog   （工作拷贝）
@@ -1,5 +1,12 @@
 2007-01-22  Li Yuan  <li.yuan@sun.com>
 
+       * gail/gailitem.c:
+       (gail_item_get_name):
+       Patch from padraig.obriain@sun.com. Bug #398330.
+       Make sure the widget is in the container list.
+
+2007-01-22  Li Yuan  <li.yuan@sun.com>
+
        * gail/gailbutton.c:
        (idle_do_action):
        Patch from padraig.obriain@sun.com. Bug #397694.
Index: gail/gailitem.c
===================================================================
--- gail/gailitem.c     （修订版 1232）
+++ gail/gailitem.c     （工作拷贝）
@@ -288,6 +288,10 @@
               list = gtk_container_get_children (GTK_CONTAINER (parent));
               index = g_list_index (list, widget);
               g_list_free (list);
+
+              if (index < 0 || index > g_list_length (list))
+                return NULL;
+
               parent_obj = atk_object_get_parent (gtk_widget_get_accessible (parent));
               if (GTK_IS_ACCESSIBLE (parent_obj))
                 {
