From 01a99ee76600840c0b91b132f73017060b871aff Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 14 Mar 2006 16:34:02 +0000 Subject: [PATCH] fix TB when 2 resources with same status are in sub-menu --- src/roster_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index 04c971003..12479a7e1 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1146,8 +1146,9 @@ class RosterWindow: if not iconset: iconset = DEFAULT_ICONSET path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16') - state_images = self.load_iconset(path) for c in contacts: + # icon MUST be different instance for every item + state_images = self.load_iconset(path) item = gtk.ImageMenuItem(c.resource + ' (' + str(c.priority) + ')') icon_name = helpers.get_icon_name_to_show(c, account) icon = state_images[icon_name]