--- branches/pyatspi/src/orca/focus_tracking_presenter.py	2007/08/14 21:28:11	2641
+++ branches/pyatspi/src/orca/focus_tracking_presenter.py	2007/08/16 00:18:17	2655
@@ -40,6 +40,7 @@
 import rolenames
 import settings
 import speech
+import traceback
 
 from orca_i18n import _ # for gettext support
 
@@ -688,7 +689,7 @@
             # We ignore defunct objects and let the atspi module take
             # care of them for us.
             #
-            if (e.type == "object:state-changed:defunct"):
+            if (e.type.name == "object:state-changed:defunct"):
                 if settings.debugEventQueue:
                     self._enqueueEventCount -= 1
                 return
@@ -699,7 +700,8 @@
             # hierarchy, so we just ignore them and let the atspi
             # module take care of it for us.
             #
-            if e.type == "object:property-change:accessible-parent":
+            if e.type.name == "object:property-change:accessible-parent":
+                print 'IGNORING'
                 if settings.debugEventQueue:
                     self._enqueueEventCount -= 1
                 return
@@ -707,7 +709,7 @@
             # At this point in time, we only care when objects are
             # removed from the desktop.
             #
-            if (e.type == "object:children-changed:remove") \
+            if (e.type.name == "object:children-changed:remove") \
                 and (e.source != self.registry.desktop):
                 if settings.debugEventQueue:
                     self._enqueueEventCount -= 1

