[X2Go-Commits] python-x2go.git - build-baikal (branch) updated: 0.1.1.4-192-g40d727e
X2Go dev team
git-admin at x2go.org
Wed Jan 8 15:29:02 CET 2014
The branch, build-baikal has been updated
via 40d727e51f5881582d3af89e57f70972f59e26d5 (commit)
from 1bd0f3c07897bc7dcf465efc606980f49ef00262 (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:
debian/changelog | 1 +
x2go/utils.py | 17 +++++++++++++++++
2 files changed, 18 insertions(+)
The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index d9c3b6e..43db3b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -90,6 +90,7 @@ python-x2go (0.1.2.0-0~x2go1) UNRELEASED; urgency=low
X2goSession instance.
- Fix automatic mounting of Windows-stylish shared local folders.
- Transform blanks in mount points into underscores.
+ - Add support for renaming X2Go session windows on Windows.
* Depend on python-xlib.
-- Mike Gabriel <mike.gabriel at das-netzwerkteam.de> Sat, 28 Sep 2012 01:44:21 +0100
diff --git a/x2go/utils.py b/x2go/utils.py
index 83a9f76..5eb4561 100644
--- a/x2go/utils.py
+++ b/x2go/utils.py
@@ -46,6 +46,7 @@ if _X2GOCLIENT_OS != 'Windows':
if _X2GOCLIENT_OS == 'Windows':
import win32api
+ import win32gui
def is_in_nx3packmethods(method):
@@ -494,6 +495,17 @@ def find_session_window(session_name):
if success:
return window
+ else:
+
+ def _callback(hwnd, extra):
+ if win32gui.GetWindowText(hwnd) == session_name:
+ return hwnd
+ return None
+
+ 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):
@@ -514,6 +526,11 @@ def set_session_window_title(session_window, session_title):
except Xlib.error.BadWindow:
pass
+ else:
+
+ win32gui.SetWindowText(session_window, session_title)
+
+
def raise_session_window(session_window):
"""\
Raise session window.
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