GNOME Bugzilla – Bug 119852
inconsistency between java and gtk based apps
Last modified: 2004-12-22 21:47:04 UTC
In case of trees with expandable items, in case that an item is expanded or collapsed an "object:state-changed:expanded" is fired. In case of gtk apps, this event is fired for the table-cell (gedit/Edit/Preferences dialog, the tree in left side) and in case of Java apps this event is fired for the table (SwingSet2/JTreeDemo page-tab). I think that should be only one solution here: event should be fired by the parent and the call of AccessibleChildChangedEvent_getChildAccessible () should return the poiter to the object which caused this event. This behaviour should be implemented only for the objects which has state MANAGE_DESCENDANTS.
A Java bug 4670319 was logged on this issue by Peter Korn. The bug was marked as fixed last November. I need to determine what version of Java the bug is fixed in. The fix was to emit the event with the source being the AccessibleJTreeNode, i.e. the behavior should be similar to GTK.
*** This bug has been marked as a duplicate of 109402 ***
also - remus, please note that your suggestion would not quite be correct since the AccessibleChildChangedEvent_getChildAccessible call can only be made on an event of type object:child-changed, not on a state-changed:expanded event.