commit/systrayList: 7 new changesets

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Mon, 11 Nov 2019 07:45:27 +0000 (UTC)

7 new commits in systrayList:

https://bitbucket.org/nvdaaddonteam/systraylist/commits/e385405a1c7d/
Changeset:   e385405a1c7d
Branch:      None
User:        josephsl
Date:        2019-11-11 07:38:34+00:00
Summary:     Remove call to sys.version for dealing with Python 2/3 differences.

Affected #:  1 file

diff --git a/addon/globalPlugins/systrayList/__init__.py 
b/addon/globalPlugins/systrayList/__init__.py
index 81dd334..4c6f33a 100644
--- a/addon/globalPlugins/systrayList/__init__.py
+++ b/addon/globalPlugins/systrayList/__init__.py
@@ -8,7 +8,6 @@
 # Shortcut: NVDA+f11
 # Copyright 2013-2019, released under GPL.
 
-import sys
 import os.path
 import wx
 import globalPluginHandler
@@ -19,12 +18,9 @@ import winUser
 import gui
 import addonHandler
 _addonDir = os.path.join(os.path.dirname(__file__), "..", "..")
-if sys.version_info.major == 2:
-       _addonDir = _addonDir.decode("mbcs")
 _curAddon = addonHandler.Addon(_addonDir)
 _addonSummary = _curAddon.manifest['summary']
 addonHandler.initTranslation()
-CENTER_ON_SCREEN = wx.CENTER_ON_SCREEN if hasattr(wx,"CENTER_ON_SCREEN") else 2
 
 def mouseEvents(location, *events):
        x,y = int (location[0]+location[2]/2), int (location[1]+location[3]/2)


https://bitbucket.org/nvdaaddonteam/systraylist/commits/bf87a29434cd/
Changeset:   bf87a29434cd
Branch:      None
User:        josephsl
Date:        2019-11-11 07:39:07+00:00
Summary:     Remove call to unicode() function as it does not exist in python 3.

Affected #:  1 file

diff --git a/addon/globalPlugins/systrayList/__init__.py 
b/addon/globalPlugins/systrayList/__init__.py
index 4c6f33a..236ecc7 100644
--- a/addon/globalPlugins/systrayList/__init__.py
+++ b/addon/globalPlugins/systrayList/__init__.py
@@ -32,7 +32,7 @@ def mouseEvents(location, *events):
 
 
 class GlobalPlugin(globalPluginHandler.GlobalPlugin):
-       scriptCategory = unicode(_addonSummary) if sys.version_info.major == 2 
else _addonSummary
+       scriptCategory = _addonSummary
 
        def __init__(self):
                super(GlobalPlugin, self).__init__()


https://bitbucket.org/nvdaaddonteam/systraylist/commits/76cc908fc0cd/
Changeset:   76cc908fc0cd
Branch:      None
User:        josephsl
Date:        2019-11-11 07:39:40+00:00
Summary:     Standardize around wx.NewIdRef and CENTER_ON_SCREEN.

Affected #:  1 file

diff --git a/addon/globalPlugins/systrayList/__init__.py 
b/addon/globalPlugins/systrayList/__init__.py
index 236ecc7..ca887c5 100644
--- a/addon/globalPlugins/systrayList/__init__.py
+++ b/addon/globalPlugins/systrayList/__init__.py
@@ -112,21 +112,21 @@ class SystrayListDialog(wx.Dialog):
                # Label is above the list view.
                self.tasksLabel = wx.StaticText(self, -1)
                tasksSizer.Add(self.tasksLabel)
-               self.listBox = wx.ListBox(self, wx.NewIdRef() if 
wx.version().startswith("4") else wx.NewId(), style=wx.LB_SINGLE, size=(550, 
250))
+               self.listBox = wx.ListBox(self, wx.NewIdRef(), 
style=wx.LB_SINGLE, size=(550, 250))
                tasksSizer.Add(self.listBox, proportion=8)
                mainSizer.Add(tasksSizer)
                # Create buttons.
                # Buttons are in a horizontal row
                buttonsSizer = wx.BoxSizer(wx.HORIZONTAL)
-               leftClickButtonID = wx.NewIdRef() if 
wx.version().startswith("4") else wx.NewId()
+               leftClickButtonID = wx.NewIdRef()
                # Translators: A button on the system tray list dialog to 
perform left mouse click.
                leftClickButton = wx.Button(self, leftClickButtonID, _("&Left 
Click"))
                buttonsSizer.Add(leftClickButton)
-               leftDoubleClickButtonID = wx.NewIdRef() if 
wx.version().startswith("4") else wx.NewId()
+               leftDoubleClickButtonID = wx.NewIdRef()
                # Translators: A button in the system tray list dialog to 
perform left double mouse click.
                leftDoubleClickButton = wx.Button(self, 
leftDoubleClickButtonID, _("Left &Double Click"))
                buttonsSizer.Add(leftDoubleClickButton)
-               rightClickButtonID = wx.NewIdRef() if 
wx.version().startswith("4") else wx.NewId()
+               rightClickButtonID = wx.NewIdRef()
                # Translators: A button in the system tray list dialog to 
perform right mouse click.
                rightClickButton = wx.Button(self, rightClickButtonID, 
_("&Right Click"))
                buttonsSizer.Add(rightClickButton)
@@ -144,7 +144,7 @@ class SystrayListDialog(wx.Dialog):
                mainSizer.Fit(self)
                self.SetSizer(mainSizer)
                rightClickButton.SetDefault()
-               self.Center(wx.BOTH | CENTER_ON_SCREEN)
+               self.Center(wx.BOTH | wx.CENTER_ON_SCREEN)
 
        def onClose(self, evt):
                self.Destroy()


https://bitbucket.org/nvdaaddonteam/systraylist/commits/ab0563356504/
Changeset:   ab0563356504
Branch:      None
User:        josephsl
Date:        2019-11-11 07:40:11+00:00
Summary:     SystrayList and taskbar list: no more Windows XP workaround.

Affected #:  1 file

diff --git a/addon/globalPlugins/systrayList/__init__.py 
b/addon/globalPlugins/systrayList/__init__.py
index ca887c5..89e47f6 100644
--- a/addon/globalPlugins/systrayList/__init__.py
+++ b/addon/globalPlugins/systrayList/__init__.py
@@ -71,15 +71,12 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
        script_createList.__doc__ = _(u"Shows the list of buttons on the System 
Tray. If pressed twice quickly, shows the items on the taskbar.")
 
        def _createSystrayList(self):
-               path = (u"shell_TrayWnd", u"TrayNotifyWnd", u"SysPager", 
u"ToolbarWindow32")
+               path = ("shell_TrayWnd", "TrayNotifyWnd", "SysPager", 
"ToolbarWindow32")
                objects = self._findAccessibleLeafsFromWindowClassPath(path)
                self._createObjectsWindow(objects, _("System Tray List"), 
_("Icons on the System Tray:"))
 
        def _createTaskList(self):
-               objects = 
self._findAccessibleLeafsFromWindowClassPath((u"Shell_TrayWnd", 
u"RebarWindow32", u"MSTaskSwWClass", u"MSTaskListWClass") ,)
-               if not objects:
-                       # Probably on XP; try this instead:
-                       objects = 
self._findAccessibleLeafsFromWindowClassPath((u"Shell_TrayWnd", 
u"RebarWindow32", u"MSTaskSwWClass", u"ToolbarWindow32"),)
+               objects = 
self._findAccessibleLeafsFromWindowClassPath(("Shell_TrayWnd", "RebarWindow32", 
"MSTaskSwWClass", "MSTaskListWClass") ,)
                self._createObjectsWindow(objects, _("Taskbar List"), _("Icons 
of running applications on the taskbar:"))
 
        def _createObjectsWindow(self, objects, title, label):


https://bitbucket.org/nvdaaddonteam/systraylist/commits/fd6f91767fd8/
Changeset:   fd6f91767fd8
Branch:      None
User:        josephsl
Date:        2019-11-11 07:43:56+00:00
Summary:     Readme: bump version to 4.0 with anticipated release date of 
January 1, 2020

Affected #:  1 file

diff --git a/readme.md b/readme.md
index b2c6b36..670dab7 100644
--- a/readme.md
+++ b/readme.md
@@ -2,13 +2,19 @@
 
 *   Authors: Rui Fontes, Rui Batista, Joseph Lee, NVDA Community contributors
 *   Download [stable version][1]
-*   Download [development version][2]
-* NVDA compatibility: 2017.3 to 2019.1
+* NVDA compatibility: 2019.3 and beyond
 
 This add-on allows you to read and activate icons on the system tray or the 
task bar, within a list box, for easy access and interaction to those items. 
With the add-on installed, press NVDA+f11 once for this dialog to pop-up with 
system tray elements, and press twice to display task bar elements, which are 
the currently running applications.
 
 Note that you can access the windows system tray in any screen reader software 
using the Windows+B, and the task bar by pressing Windows+T. This plugin is 
only useful to make the transition from JAWS for Windows smoother and to avoid 
some tooltips that may pop-up when cycling through the system tray with the 
windows keyboard means.
 
+## Changes for 4.0 2020-01-01 ##
+
+* Requires NVDA 2019.3 or later.
+* No more support for Windows versions earlier than Windows 7 Service Pack 1.
+* Add-on has been renamed to "SysTrayList".
+* Donation request dialog will no longer appear when installing or updating 
the add-on.
+
 ## Changes for 3.2 2018-12-24 ##
 
 * More code changes to support Python 3.


https://bitbucket.org/nvdaaddonteam/systraylist/commits/8969e30da0a8/
Changeset:   8969e30da0a8
Branch:      None
User:        josephsl
Date:        2019-11-11 07:44:15+00:00
Summary:     Rename the add-on to 'SysTrayList'

Affected #:  1 file

diff --git a/buildVars.py b/buildVars.py
index 27e5b65..4c3ad3b 100644
--- a/buildVars.py
+++ b/buildVars.py
@@ -14,7 +14,7 @@ addon_info = {
        "addon_name" : "systrayList",
        # Add-on summary, usually the user visible name of the addon.
        # Translators: Summary for this add-on to be shown on installation and 
add-on information.
-       "addon_summary" : _("sysTrayList - list sys tray and task bar 
elements"),
+       "addon_summary" : _("SysTrayList"),
        # Add-on description
        # Translators: Long description to be shown for this add-on on add-on 
information from add-ons manager
        "addon_description" : _("""Shows the list of buttons on the System Tray 
with NVDA+F11 once, twice shows running task lists."""),


https://bitbucket.org/nvdaaddonteam/systraylist/commits/91e16f6144ac/
Changeset:   91e16f6144ac
Branch:      stable
User:        josephsl
Date:        2019-11-11 07:44:31+00:00
Summary:     NVDA compatibility: minimum version -> 2019.3

Affected #:  1 file

diff --git a/buildVars.py b/buildVars.py
index 4c3ad3b..44bfb30 100644
--- a/buildVars.py
+++ b/buildVars.py
@@ -27,7 +27,7 @@ addon_info = {
        # Documentation file name
        "addon_docFileName" : "readme.html",
        # Minimum NVDA version supported
-       "addon_minimumNVDAVersion" : "2017.3.0",
+       "addon_minimumNVDAVersion" : "2019.3.0",
        # Last NVDA version supported/tested
        "addon_lastTestedNVDAVersion" : "2019.3.0",
        # Add-on update channel (default is stable)

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

--

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: