commit/dropbox: 2 new changesets

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Fri, 30 May 2014 12:21:50 -0000

2 new commits in dropbox:

https://bitbucket.org/nvdaaddonteam/dropbox/commits/c44ebb392528/
Changeset:   c44ebb392528
Branch:      None
User:        pzajda
Date:        2014-05-30 14:11:33
Summary:     Global plugin: add translators comments

Affected #:  1 file

diff --git a/addon/globalPlugins/SayStatedropbox.py 
b/addon/globalPlugins/SayStatedropbox.py
index c82a91d..dbf72df 100644
--- a/addon/globalPlugins/SayStatedropbox.py
+++ b/addon/globalPlugins/SayStatedropbox.py
@@ -98,6 +98,7 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                                        
                                else:
                                        speech.speechMode = oldSpeechMode
+                                       # Translators: message announced if it 
is impossible to find the Dropbox systray icon
                                        ui.message(_("Impossible to open 
DropBox context menu"))
                                
                                
@@ -141,7 +142,7 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                repeatCount =scriptHandler.getLastScriptRepeatCount()
                self.taskTimer = wx.CallLater(400, callback, repeatCount)
 
-       # Documentation
+       # Translators: message presented when user performes input help for the 
Shift+NVDA+D script
        script_announceDropbox.__doc__ = _("If pressed once, announces Dropbox 
status. If pressed twice, open the Dropbox context menu by clicking on its 
systray icon. If pressed three times, reports the Dropbox version")
 
        __gestures={


https://bitbucket.org/nvdaaddonteam/dropbox/commits/5c7d63e9247c/
Changeset:   5c7d63e9247c
Branch:      master
User:        pzajda
Date:        2014-05-30 14:21:09
Summary:     Global plugin: code corrections suggested by Joseph Lee. Thanks!

Affected #:  1 file

diff --git a/addon/globalPlugins/SayStatedropbox.py 
b/addon/globalPlugins/SayStatedropbox.py
index dbf72df..4bd4744 100644
--- a/addon/globalPlugins/SayStatedropbox.py
+++ b/addon/globalPlugins/SayStatedropbox.py
@@ -60,7 +60,7 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                        h,FindWindowExA =0,winUser.user32.FindWindowExA
                        for element in l:
                                h=FindWindowExA(h,0,element,0)
-                               if h == None:
+                               if not h:
                                        continue
                                
                                
obj=NVDAObjects.IAccessible.getNVDAObjectFromEvent(h,-4,0)
@@ -121,7 +121,7 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                                # If we are already inside of the context menu, 
stop the script
                                objFocused = api.getFocusObject()
                                currentProcess = 
objFocused.appModule.appName.lower()
-                               if (currentProcess.lower() == u'dropbox' and 
objFocused.windowClassName.lower() == u'#32768') and (objFocused.role == 
controlTypes.ROLE_POPUPMENU or objFocused.role == controlTypes.ROLE_MENUITEM):
+                               if (currentProcess.lower() == u'dropbox' and 
objFocused.windowClassName.lower() == u'#32768') and objFocused.role in 
({controlTypes.ROLE_POPUPMENU, controlTypes.ROLE_MENUITEM}):
                                        
eventHandler.queueEvent("gainFocus",objFocused)
 
                                else:

Repository URL: https://bitbucket.org/nvdaaddonteam/dropbox/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts: