[X2Go-Commits] [pyhoca-gui] 01/01: fix icon path

git-admin at x2go.org git-admin at x2go.org
Wed Apr 16 16:59:37 CEST 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository pyhoca-gui.

commit 36f3eb4cda591345776ee8ca3c29c359aa42a943
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Apr 16 16:58:44 2014 +0200

    fix icon path
---
 pyhoca/wxgui/messages.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyhoca/wxgui/messages.py b/pyhoca/wxgui/messages.py
index 86c230a..cc05478 100644
--- a/pyhoca/wxgui/messages.py
+++ b/pyhoca/wxgui/messages.py
@@ -68,7 +68,7 @@ class PyHoca_MessageWindow(wx.Dialog):
 
         self._pyhoca_messages = {
             'REALLY_DELETE_PROFILE': _(u'Are you really sure you want to\ndelete the session profile ,,%s\'\'?') % profile_name,
-            'ALREADY_RUNNING': _(u'{appname} is already running for user ,,{username}\'\'!\n\nOnly one instance of {appname} can be started per\nuser. The {appname} icon can be found in your desktops\'s\nnotification area/systray.').format(appname=_PyHocaGUI.appname, username=_CURRENT_LOCAL_USER)
+            'ALREADY_RUNNING': _(u'{appname} is already running for user ,,{username}\'\'!\n\nOnly one instance of {appname} can be started per\nuser. The {appname} icon can be found in your desktops\'s\nnotification area/systray.').format(appname=self._PyHocaGUI.appname, username=_CURRENT_LOCAL_USER)
         }
 
 
@@ -93,7 +93,7 @@ class PyHoca_MessageWindow(wx.Dialog):
 
         _icons_location = basepath.icons_basepath
         if icon:
-            path_to_icon = os.path.normpath('%s/PyHoca/64x64/%s.png' % (_icons_location, icon))
+            path_to_icon = os.path.normpath('%s/%s/64x64/%s.png' % (_icons_location, self._PyHocaGUI.appname, icon))
             self.icon = wx.StaticBitmap(self, wx.ID_ANY, wx.Bitmap(path_to_icon, wx.BITMAP_TYPE_ANY))
         self.message = wx.StaticText(self, wx.ID_ANY, self.show_message, size=(-1, -1), style=wx.ALIGN_LEFT)
 

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git



More information about the x2go-commits mailing list