Quiring, Sam | 2 Sep 2009 16:18
Favicon

Re: Need ATK experienced help

Hello Li,

You asked "is there a cache?"  A cache of what?  Can you explain
how that would make a difference?  Or point me at some docs?

In the AtkObject's managed by PAPI, each parent maintains a list
of its children, in addition to anything ATK is doing.

ref_child:

1.  From the atkParent, get the associated GUI node
2.  Find the Ith GUI child node of the parent GUI node
3.  create atkChild, an AtkObject corresponsing to the child GUI node
4.  set the parent:  atk_object_set_parent(atkChild, atkParent)

Here's the (paraphrased) Papi code in set_parent showing that a list
of child nodes is maintained in each parent:

    atk_object_set_parent(atkChild, atkParent);

    /* Add the object to the list of children of the parent. */
    data = g_object_get_data (G_OBJECT (atkParent), PAPI_CHILDREN);
    data = g_list_append (data, atkChild);
    g_object_set_data (G_OBJECT (atkParent), PAPI_CHILDREN, data);

-Sam

-----Original Message-----
From: Li.Yuan <at> sun.com [mailto:Li.Yuan <at> sun.com] 
Sent: Wednesday, September 02, 2009 2:58 AM
(Continue reading)


Gmane