[X2Go-Commits] pyhoca-gui.git - build-main (branch) updated: 0.4.0.8-15-gc7c9cb7

X2Go dev team git-admin at x2go.org
Wed Jan 8 15:22:04 CET 2014


The branch, build-main has been updated
       via  c7c9cb77bd436b75d2dc6d35ac3172c011304abb (commit)
      from  a80f88c1fa5f8d40e295b7e4e60b48354d019947 (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             |    2 ++
 pyhoca/wxgui/listdesktops.py |   12 ++++++++++++
 2 files changed, 14 insertions(+)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 4ac48df..133e4e6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,8 @@ pyhoca-gui (0.4.0.9-0~x2go1) UNRELEASED; urgency=low
     - Become aware of new Python X2Go hook method
       (HOOK_on_failing_SFTP_client).
     - Become aware of new Python X2Go hook method (HOOK_desktop_sharing_denied).
+    - Connect to sharable desktop session when selecting the session display
+      with double click from the list of available desktop sessions.
   * /debian/copyright:
     + Update file. Add entry for file icon2exe.py.
   * /debian/control:
diff --git a/pyhoca/wxgui/listdesktops.py b/pyhoca/wxgui/listdesktops.py
index f1a29b5..8ab0885 100644
--- a/pyhoca/wxgui/listdesktops.py
+++ b/pyhoca/wxgui/listdesktops.py
@@ -98,6 +98,7 @@ class PyHocaGUI_DialogBoxListDesktops(wx.Dialog):
         self.cancelBtn = wx.Button(self, wx.ID_CANCEL, _(u'Cancel'), )
 
         self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnListClick, self.desktopList)
+        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnListDoubleClick, self.desktopList)
         self.Bind(wx.EVT_BUTTON, self.OnOk, self.okBtn)
         self.Bind(wx.EVT_BUTTON, self.OnRefreshDesktopList, self.refreshBtn)
         self.Bind(wx.EVT_BUTTON, self.OnCancel, self.cancelBtn)
@@ -178,6 +179,17 @@ class PyHocaGUI_DialogBoxListDesktops(wx.Dialog):
                 user = desktop.split('@')[1]
                 self.add_item(user, display)
 
+    def OnListDoubleClick(self, evt):
+        """\
+        On double click select item and auto-click Ok button.
+
+        @param evt: event
+        @type evt: C{obj}
+
+        """
+        self.OnListClick(evt)
+        self.OnOk(evt)
+
     def OnListClick(self, evt):
         """\
         Enable the Connect button only if a list item got clicked.


hooks/post-receive
-- 
pyhoca-gui.git (Python X2Go Client (wxPython GUI))

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 "pyhoca-gui.git" (Python X2Go Client (wxPython GUI)).




More information about the x2go-commits mailing list