This commit is contained in:
Jean-Marie Traissard 2006-11-20 17:24:52 +00:00
parent b9f5755ad6
commit 173ab72b46
1 changed files with 2 additions and 2 deletions

View File

@ -1734,14 +1734,14 @@ class RosterWindow:
history_menuitem = xml.get_widget('history_menuitem') history_menuitem = xml.get_widget('history_menuitem')
contacts = gajim.contacts.get_contact(account, jid) contacts = gajim.contacts.get_contact(account, jid)
if len(contacts) > 1: # sevral resources if len(contacts) > 1: # several resources
def resources_submenu(action): def resources_submenu(action):
""" Build a submenu with contact's resources. """ """ Build a submenu with contact's resources. """
sub_menu = gtk.Menu() sub_menu = gtk.Menu()
iconset = gajim.config.get('iconset') iconset = gajim.config.get('iconset')
if not iconset: if not iconset:
iconset = DEFAULT_ICONSET iconset = gajim.config.DEFAULT_ICONSET
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16') path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16')
for c in contacts: for c in contacts:
# icon MUST be different instance for every item # icon MUST be different instance for every item