Sorted merged account line right click -> account_list

This commit is contained in:
Jean-Marie Traissard 2006-05-14 16:28:09 +00:00
parent 8decfc44a2
commit d39055fe3c
1 changed files with 4 additions and 0 deletions

View File

@ -1578,7 +1578,11 @@ class RosterWindow:
if not iconset:
iconset = DEFAULT_ICONSET
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16')
accounts = [] # Put accounts in a list to sort them
for account in gajim.connections:
accounts.append(account)
accounts.sort()
for account in accounts:
state_images = self.load_iconset(path)
item = gtk.ImageMenuItem(account)
show = gajim.SHOW_LIST[gajim.connections[account].connected]