OSDN Git Service

Support yet another of those rule checkbox lists in OE/WM/WLM, and change the role...
authorMichael Curran <mick@kulgan.net>
Fri, 24 Sep 2010 19:37:53 +0000 (05:37 +1000)
committerMichael Curran <mick@kulgan.net>
Fri, 24 Sep 2010 19:37:53 +0000 (05:37 +1000)
source/appModules/msimn.py
source/appModules/wlmail.py

index 96e3620..47ed683 100644 (file)
@@ -46,7 +46,7 @@ class AppModule(_default.AppModule):
                        obj.editValueUnit=textInfos.UNIT_STORY\r
 \r
        def chooseNVDAObjectOverlayClasses(self,obj,clsList):\r
-               if obj.windowControlID in (129,130) and obj.role==controlTypes.ROLE_LISTITEM:\r
+               if obj.windowControlID in (128,129,130) and obj.role==controlTypes.ROLE_LISTITEM:\r
                        clsList.insert(0,MessageRuleListItem)\r
 \r
        def event_gainFocus(self,obj,nextHandler):\r
@@ -60,8 +60,7 @@ class AppModule(_default.AppModule):
 class MessageRuleListItem(sysListView32.ListItem):\r
        """Used for the checkbox list items used to select message rule types in in message filters"""\r
 \r
-       def _get_role(self):\r
-               return controlTypes.ROLE_CHECKBOX\r
+       role=controlTypes.ROLE_CHECKBOX\r
 \r
        def _get_states(self):\r
                states=super(MessageRuleListItem,self).states\r
index caa021c..6460c04 100755 (executable)
@@ -30,7 +30,7 @@ class AppModule(_default.AppModule):
        def chooseNVDAObjectOverlayClasses(self, obj, clsList):\r
                if obj.windowClassName == "Internet Explorer_Server" and obj.role == controlTypes.ROLE_DOCUMENT and obj.HTMLNode and obj.HTMLNode.document.url=="about:blank": \r
                        clsList.insert(0, AboutBlankDocument)\r
-               elif obj.windowControlID in (129,130) and obj.role==controlTypes.ROLE_LISTITEM:\r
+               elif obj.windowControlID in (128,129,130) and obj.role==controlTypes.ROLE_LISTITEM:\r
                        import msimn \r
                        clsList.insert(0,msimn.MessageRuleListItem)\r
 \r