[X2go-Commits] python-x2go.git - master (branch) updated: 0.1.1.4-124-gb9421ed
X2Go dev team
git-admin at x2go.org
Thu Mar 8 00:38:07 CET 2012
The branch, master has been updated
via b9421ed58590787180ae7069108d926a314bbda7 (commit)
from a181afeb662be2a2c6fb39f8216b520041c57059 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b9421ed58590787180ae7069108d926a314bbda7
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Thu Mar 8 00:37:56 2012 +0100
fix setting of session window title on Unix platforms (after changing stuff on Windows)
-----------------------------------------------------------------------
Summary of changes:
x2go/backends/terminal/_stdout.py | 2 +-
x2go/utils.py | 10 ++++++----
2 files changed, 7 insertions(+), 5 deletions(-)
The diff of changes is:
diff --git a/x2go/backends/terminal/_stdout.py b/x2go/backends/terminal/_stdout.py
index 1d59497..f64663d 100644
--- a/x2go/backends/terminal/_stdout.py
+++ b/x2go/backends/terminal/_stdout.py
@@ -828,7 +828,7 @@ class X2goTerminalSessionSTDOUT(object):
timeout -= 1
if self.session_window is not None:
- utils.set_session_window_title(self.session_window)
+ utils.set_session_window_title(self.session_window, self.session_title)
break
gevent.sleep(1)
diff --git a/x2go/utils.py b/x2go/utils.py
index 979e645..15a544d 100644
--- a/x2go/utils.py
+++ b/x2go/utils.py
@@ -491,17 +491,19 @@ def find_session_window(session_name):
return None
-def set_session_window_title(session_window):
+def set_session_window_title(session_window, session_title):
"""\
Set title of session window.
@param session_window: session window instance
@type session_window: C{obj}
+ @param session_title: session title to be set for C{session_window}
+ @type session_title: C{str}
"""
if _X2GOCLIENT_OS != 'Windows':
- self.session_window.set_wm_name(str(self.session_title))
- self.session_window.set_wm_icon_name(str(self.session_title))
+ session_window.set_wm_name(str(session_title))
+ session_window.set_wm_icon_name(str(session_title))
_X_DISPLAY.sync()
def raise_session_window(session_window):
@@ -512,4 +514,4 @@ def raise_session_window(session_window):
@type session_window: C{obj}
"""
- pass
\ No newline at end of file
+ pass
hooks/post-receive
--
python-x2go.git (Python X2Go Client API)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-x2go.git" (Python X2Go Client API).
More information about the x2go-commits
mailing list