orca r3994 - in trunk: . src/orca



Author: wwalker
Date: Mon Jun 23 13:25:32 2008
New Revision: 3994
URL: http://svn.gnome.org/viewvc/orca?rev=3994&view=rev

Log:
Fix for bug #536985 - Orca no longer reads applets on the panel.


Modified:
   trunk/ChangeLog
   trunk/src/orca/focus_tracking_presenter.py

Modified: trunk/src/orca/focus_tracking_presenter.py
==============================================================================
--- trunk/src/orca/focus_tracking_presenter.py	(original)
+++ trunk/src/orca/focus_tracking_presenter.py	Mon Jun 23 13:25:32 2008
@@ -609,13 +609,19 @@
                     # that are now showing (such as gnome-screensaver-dialog).
                     # See bug #530368 for more details.
                     #
+                    # Also, we might be running into a gnome-panel
+                    # applet, which is indicated by a host application
+                    # with no children.  See bug #536985.
+                    #
                     eType = event.type
                     if (eType == "window:activate") \
                        or ((eType.startswith("focus")) 
                          and (event.source.getRole() == pyatspi.ROLE_FRAME)) \
                        or (eType.startswith("object:state-changed:showing")
                          and (event.source.getRole() == pyatspi.ROLE_PANEL)
-                         and state.contains(pyatspi.STATE_MODAL)):
+                         and state.contains(pyatspi.STATE_MODAL)) \
+                       or (event.host_application \
+                           and len(event.host_application) == 0):
 
                         # We'll let someone else decide if it's important
                         # to stop speech or not.



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