[g-a-devel]Detecting opening and closure of dialogs using CSPI
- From: "Mukund" <mukund rajagopalan wipro com>
- To: "'accessibility mailing list'" <gnome-accessibility-devel gnome org>
- Subject: [g-a-devel]Detecting opening and closure of dialogs using CSPI
- Date: Sat, 16 Mar 2002 21:28:01 +0530
Using CSPI, Am trying to detect a dialog getting launched or
within an application and this is what I did:
I registered for object:children-changed event and in the
tried checking if the event source's parent is NULL:
/* this code is inside event hook */
parent = Accessible_getParent (event->source);
/* this is top window */
My understanding is that the main window of the application
children-changed event when a new dialog is launched or
I would expect that the control would flow into the 'if'
_once_ for launching a new dialog and _once_ for closing it.
happens is the 'if' block gets executed several times for a
launch and closure of a dialog (gtk-demo is my application).
Is this the expected behavior ? Or, is this not the way of
dialogs getting launched or closed ?
] [Thread Prev