From 4018894f41c39f6eb612fd442e73bdd7b1c953f3 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Sun, 9 Apr 2006 16:03:50 +0000 Subject: [PATCH] Use the right way to copy a list in python, thanks Yann. --- src/roster_window.py | 1 - src/systray.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 44ef49b8f..c509b5cfe 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -852,7 +852,6 @@ class RosterWindow: item.connect('activate', self.on_bookmark_menuitem_activate, account, bookmark) gc_sub_menu.append(item) - def _change_style(self, model, path, iter, option): if option is None: diff --git a/src/systray.py b/src/systray.py index 8607d74e1..f3f7d1a4b 100644 --- a/src/systray.py +++ b/src/systray.py @@ -271,7 +271,9 @@ class Systray: # if we sort_by_show : contacts_table = [group, status, name] # else : contacts_table = [group, name, status] contacts_table = [] - show_list = gajim.SHOW_LIST + show_list = [] + for show in gajim.SHOW_LIST: # copy gajim.SHOW_LIST in show_list + show_list.append(show) show_list.append('not in roster') # not in roster is not in this list but we need it for jid in gajim.contacts.get_jid_list(account): contact = gajim.contacts.get_contact_with_highest_priority(account,