Only add items to the cache on children-changed if they are passed in
authorMike Gorse <mgorse@suse.com>
Mon, 9 Jul 2012 22:36:26 +0000 (17:36 -0500)
committerMike Gorse <mgorse@suse.com>
Mon, 9 Jul 2012 22:36:26 +0000 (17:36 -0500)
commitf734be9d27abe565c211dc2cd0f360e73fd32c1f
tree92ed2273e397d305467438b2d2cd2eb68787fa19
parent8e03fc29c9dc15f90cbb6433e05b55ab535658a1
Only add items to the cache on children-changed if they are passed in

Gtk tree views, for instance, send children-changed signals without passing
an object. If a toolkit does this, then assume that it is doing so because
fetching the object would be expensive, and/or the object is transient, so
just have the cache bypass the signal rather than ref the child in order to
add it. Helps with performance when creating large gtk+ tree views.

https://bugzilla.gnome.org/show_bug.cgi?id=674719
atk-adaptor/accessible-cache.c