Re: [g-a-devel]Detecting opening and closure of dialogs using CSPI

Hi Guys,

	This children-changed thing worries me.

On Sat, 2002-03-16 at 15:58, Mukund wrote:
> 	parent = Accessible_getParent (event->source);
>       if (!parent)

	This suffers from several problems:

	* an exception will return a NULL parent
	* children-changed is fired for accessibles that will be
	  destroyed soon - causing a race nightmare (perhaps)
	* the parent of an application should be a desktop not NULL
	* the performance issues here are just horrible,
		+ we get notified of all children changes
		+ for each we do a roundtrip to the remote process

	When we implement the 'listenForEventOn' I think we should allow the
API to listen for events on a single accessible, and or on an
accessible's children, otherwise we're going to see loads of listeners
getting all these events and then doing expensive round trips to try and
work out where in the tree they are. IMHO not a good thing.



 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]