[X2Go-Commits] pyhoca-gui.git - build-59a18b6e3b5d3f1dd8f07f26433d37fe5984a57d (branch) updated: 0.0.30.1-73-g8239ce8

X2Go dev team git-admin at x2go.org
Tue Aug 27 13:21:22 CEST 2013


The branch, build-59a18b6e3b5d3f1dd8f07f26433d37fe5984a57d has been updated
       via  8239ce836ad58d7b0bf482a4200487324f5f6f31 (commit)
      from  ff55693a72f83dd9ef96b4809828c4989a4fd1cc (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:
 pyhoca/wxgui/menus_taskbar.py |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

The diff of changes is:
diff --git a/pyhoca/wxgui/menus_taskbar.py b/pyhoca/wxgui/menus_taskbar.py
index a546912..d0df21e 100644
--- a/pyhoca/wxgui/menus_taskbar.py
+++ b/pyhoca/wxgui/menus_taskbar.py
@@ -195,6 +195,9 @@ class PyHocaGUI_Menu_TaskbarSessionProfile(wx.Menu):
         _query_session_uuid = self._PyHocaGUI.client_connected_sessions_of_profile_name(profile_name, return_objects=False)[0]
         _session_list = self._PyHocaGUI.list_sessions(_query_session_uuid)
 
+        # newest sessions at the top
+        _session_list.reverse()
+
         if _session_list:
 
             for session_name in _session_list.keys():
@@ -205,13 +208,13 @@ class PyHocaGUI_Menu_TaskbarSessionProfile(wx.Menu):
                     state = _(u'Running')
                 elif _session_list[session_name].status == 'S':
                     state = _(u'Suspended')
-                self.AppendMenu(id=_s_id, text=u'%s: »%s«' % (state, session_name), 
-                                submenu=PyHocaGUI_Menu_TaskbarSessionActions(self._PyHocaGUI, caller=self,
-                                                                             profile_name=profile_name,
-                                                                             session_name=session_name,
-                                                                             status=_session_list[session_name].status,
-                                                                            )
-                               )
+                session_submenu = self.AppendMenu(id=_s_id, text=u'%s: »%s«' % (state, session_name), 
+                                                  submenu=PyHocaGUI_Menu_TaskbarSessionActions(self._PyHocaGUI, caller=self,
+                                                                                               profile_name=profile_name,
+                                                                                               session_name=session_name,
+                                                                                               status=_session_list[session_name].status,
+                                                                                              )
+                                                 )
 
         if _session_list.keys():
             self.Append(id=ID_CLEANSESSIONS, text=_(u"&Clean all sessions"))
@@ -324,8 +327,11 @@ class PyHocaGUI_Menu_TaskbarSessionManager(wx.Menu):
                                                                    bind_method=self._PyHocaGUI.OnSessionAuthenticate))
         self.AppendSeparator()
 
+        _profile_names = self._PyHocaGUI.session_profiles.profile_names
+        _profile_names.sort()
+
         _connected_sessions = False
-        for profile_name in self._PyHocaGUI.session_profiles.profile_names:
+        for profile_name in _profile_names:
             if profile_name in self._PyHocaGUI._X2goClient__client_connected_sessions(return_profile_names=True):
                 _connected_sessions = True
                 _this_id = wx.NewId()


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