orca r3474 - in trunk: . src/orca



Author: joanied
Date: Fri Jan 18 15:29:32 2008
New Revision: 3474
URL: http://svn.gnome.org/viewvc/orca?rev=3474&view=rev

Log:
* src/orca/Gecko.py: 
  Fix for bug #509731 - braille for collapsed html combo boxes
  is not updating correctly.


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

Modified: trunk/src/orca/Gecko.py
==============================================================================
--- trunk/src/orca/Gecko.py	(original)
+++ trunk/src/orca/Gecko.py	Fri Jan 18 15:29:32 2008
@@ -5216,11 +5216,16 @@
         # extents based on their physical position, even though they are
         # not showing.  Therefore, if the object in question is a menu
         # item, get the object extents rather than the range extents for
-        # the text.
+        # the text. Similarly, if it's a menu in a combo box, get the
+        # extents of the combo box.
         #
         text = self.queryNonEmptyText(obj)
         if text and obj.getRole() != pyatspi.ROLE_MENU_ITEM:
             extents = text.getRangeExtents(startOffset, endOffset, 0)
+        elif obj.getRole() == pyatspi.ROLE_MENU \
+             and obj.parent.getRole() == pyatspi.ROLE_COMBO_BOX:
+            ext = obj.parent.queryComponent().getExtents(0)
+            extents = [ext.x, ext.y, ext.width, ext.height]
         else:
             ext = obj.queryComponent().getExtents(0)
             extents = [ext.x, ext.y, ext.width, ext.height]



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