[X2Go-Commits] python-x2go.git - build-baikal (branch) updated: 0.1.1.4-193-gdd0a73b
X2Go dev team
git-admin at x2go.org
Wed Jan 8 15:26:58 CET 2014
The branch, build-baikal has been updated
via dd0a73b1844e0ce9db6d4b75e72ebe7e07faa71f (commit)
from 40d727e51f5881582d3af89e57f70972f59e26d5 (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 -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
x2go/utils.py | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
The diff of changes is:
diff --git a/x2go/utils.py b/x2go/utils.py
index 5eb4561..a80e4c6 100644
--- a/x2go/utils.py
+++ b/x2go/utils.py
@@ -497,16 +497,18 @@ def find_session_window(session_name):
else:
+ windows = []
+ window = None
+
def _callback(hwnd, extra):
- if win32gui.GetWindowText(hwnd) == session_name:
- return hwnd
- return None
+ if win32gui.GetWindowText(hwnd) == "X2GO-%s" % session_name:
+ windows.append(hwnd)
+
+ win32gui.EnumWindows(_callback, None)
+ if len(windows): window = windows[0]
- window = [ w for w in win32gui.EnumWindows(_callback, None) if w is not None ]
- if len(window): window = window[0]
return window
- return None
def set_session_window_title(session_window, session_title):
"""\
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