From 19e078878c1e769da718589607f6e0b747d52029 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 24 Mar 2006 18:58:37 +0000 Subject: [PATCH] [jim++]. sort accounts in trayicon tooltip. fixes #1734 --- src/tooltips.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tooltips.py b/src/tooltips.py index c7dbbd83e..215fab3da 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -232,7 +232,9 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable): def get_accounts_info(self): accounts = [] - for account in gajim.contacts.get_accounts(): + accounts_list = gajim.contacts.get_accounts() + accounts_list.sort() + for account in accounts_list: status_idx = gajim.connections[account].connected # uncomment the following to hide offline accounts # if status_idx == 0: continue