OSDN Git Service

NVDAObjects.IAccessible.Groupbox description property: Use simpleNext instead of...
authorJames Teh <jamie@jantrid.net>
Mon, 30 Jan 2012 00:39:05 +0000 (10:39 +1000)
committerJames Teh <jamie@jantrid.net>
Mon, 30 Jan 2012 00:39:05 +0000 (10:39 +1000)
This has been broken for ages, but everyone somehow missed it. :)

source/NVDAObjects/IAccessible/__init__.py
user_docs/en/changes.t2t

index 2a2737a..0818367 100644 (file)
@@ -1370,14 +1370,14 @@ class NUIDialogClient(Dialog):
 class Groupbox(IAccessible):\r
 \r
        def _get_description(self):\r
-               next=self.next\r
+               next=self.simpleNext\r
                if next and next.name==self.name and next.role==controlTypes.ROLE_GRAPHIC:\r
-                       next=next.next\r
+                       next=next.simpleNext\r
                if next and next.role==controlTypes.ROLE_STATICTEXT:\r
-                       nextNext=next.next\r
+                       nextNext=next.simpleNext\r
                        if nextNext and nextNext.name!=next.name:\r
                                return next.name\r
-               return super(Groupbox,self)._get_description()\r
+               return super(Groupbox,self).description\r
 \r
 class TrayClockWClass(IAccessible):\r
        """\r
index 2100feb..8475225 100644 (file)
@@ -55,6 +55,7 @@ Highlights of this release include features for more fluent reading of braille;
 - In iTunes, position information in certain lists is now reported correctly.\r
 - In Adobe Reader, some links are no longer treated as containing read-only editable text fields.\r
 - The labels of some editable text fields are no longer incorrectly included when reporting the text of a dialog. (#1960)\r
+- The description of groupings is once again reported if reporting of object descriptions is enabled.\r
 \r
 \r
 == Changes for Developers ==\r