[X2Go-Commits] [pyhoca-gui] 02/10: pyhoca/wxgui/printingprefs.py: Set _icons_location in constructor, not outside of the class definition. (It fails to set a local icon path if PyHoca-GUI runs in PYHOCAGUI_DEVELOPMENT mode).
git-admin at x2go.org
git-admin at x2go.org
Tue Jul 23 21:53:29 CEST 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository pyhoca-gui.
commit 51256abf339a14c095f84518581ca9a78a7f45d7
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Jul 23 16:34:53 2019 +0200
pyhoca/wxgui/printingprefs.py: Set _icons_location in constructor, not outside of the class definition. (It fails to set a local icon path if PyHoca-GUI runs in PYHOCAGUI_DEVELOPMENT mode).
---
debian/changelog | 3 +++
pyhoca/wxgui/printingprefs.py | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 62342d0..547d366 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,9 @@ pyhoca-gui (0.5.0.9-0x2go1) UNRELEASED; urgency=medium
* New upstream version (0.5.0.9):
- Work around 'AT-SPI: Could not obtain desktop path or name' error messages
by disabling the AT bridge.
+ - pyhoca/wxgui/printingprefs.py: Set _icons_location in constructor, not
+ outside of the class definition. (It fails to set a local icon path
+ if PyHoca-GUI runs in PYHOCAGUI_DEVELOPMENT mode).
* debian/control:
+ Drop python-notify alternative dependency, rely on the GTK-3 Notify
GObject.
diff --git a/pyhoca/wxgui/printingprefs.py b/pyhoca/wxgui/printingprefs.py
index 51c8166..0eaa3a2 100644
--- a/pyhoca/wxgui/printingprefs.py
+++ b/pyhoca/wxgui/printingprefs.py
@@ -37,8 +37,6 @@ else:
import basepath
-_icons_location = basepath.icons_basepath
-
class PyHocaGUI_PrintingPreferences(wx.Dialog):
"""\
The print preferences dialog box allowing the configuration and re-configuration
@@ -62,6 +60,8 @@ class PyHocaGUI_PrintingPreferences(wx.Dialog):
self._pyhoca_logger = self._PyHocaGUI._pyhoca_logger
self.mode = mode
+ _icons_location = basepath.icons_basepath
+
self._pyhoca_logger('opening client printing configuration dialog, mode: ,,%s\'\'' % self.mode, loglevel=log.loglevel_INFO)
if self.mode == 'edit':
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git
More information about the x2go-commits
mailing list