From 7c85a32cbbae043cde6661ddb69fb4835492c570 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Thu, 6 Apr 2006 21:19:26 +0000 Subject: [PATCH] Include users with no group un "General" group in systray->chat with --- src/systray.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/systray.py b/src/systray.py index d561e37fb..0cccf6205 100644 --- a/src/systray.py +++ b/src/systray.py @@ -240,7 +240,6 @@ class Systray: groups_menu = gtk.Menu() - # FIXME : also print contacts that are not in a group groups_list = gajim.groups[account].keys() groups_list.sort() for group in groups_list: @@ -254,7 +253,11 @@ class Systray: for jid in gajim.contacts.get_jid_list(account): contact = gajim.contacts.get_contact_with_highest_priority(account, jid) - if group in contact.groups and contact.show != 'offline' and \ + if contact.groups == []: #user has no group, print him in General + contact_groups = _('General') + else: + contact_groups = contact.groups + if group in contact_groups and contact.show != 'offline' and \ contact.show != 'error': at_least_one = True s = gtkgui_helpers.escape_underscore(contact.get_shown_name())