Index: JavaBridge.java
===================================================================
RCS file: /cvs/gnome/java-access-bridge/bridge/org/GNOME/Accessibility/JavaBridge.java,v
retrieving revision 1.19
diff -u -p -r1.19 JavaBridge.java
--- JavaBridge.java	14 Jul 2003 11:01:23 -0000	1.19
+++ JavaBridge.java	13 Aug 2003 13:52:17 -0000
@@ -68,21 +68,24 @@ public class JavaBridge {
 				java.lang.Object descendant = e.getNewValue();
 				org.omg.CORBA.Any any;
 				AccessibleContext ac = null;
+				int detail1 = -1;
 
 				any = AccessUtil.getORB().create_any ();
 
 				if (descendant != null) {
-					if (descendant instanceof javax.accessibility.Accessible)
+					if (descendant instanceof AccessibleContext)
+						ac = (AccessibleContext) descendant;
+					else if (descendant instanceof javax.accessibility.Accessible)
 						ac = ((javax.accessibility.Accessible) descendant).getAccessibleContext();
 				}
 				if (ac != null) {
 					org.GNOME.Accessibility.Accessible accessible = getAccessibleObjectFactory().getAccessible(ac);
-					any.insert_Object (accessible);
+					any.insert_Object (accessible, AccessUtil.getORB().get_primitive_tc (TCKind.tk_objref));
+					detail1 = ac.getAccessibleIndexInParent ();
 				}
-					
-				dispatchEvent(e.getSource(), 
-					      "object:active-descendant",
-					      0, 0, any);
+				dispatchEvent(source, 
+					      "object:active-descendant-changed",
+					      detail1, 0, any);
 			}
 			else if (propertyName == AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY) {
                 		boolean textEvent = false;
