don't redraw the whole roster when we connects to an account

This commit is contained in:
Yann Leboulanger 2006-02-19 22:20:45 +00:00
parent 57fad03435
commit 50407e5cca
2 changed files with 6 additions and 3 deletions

View File

@ -191,7 +191,7 @@ class Interface:
def handle_event_roster(self, account, data):
#('ROSTER', account, array)
self.roster.fill_contacts_and_groups_dicts(data, account)
self.roster.draw_roster()
self.roster.add_account_contacts(account)
if self.remote_ctrl:
self.remote_ctrl.raise_signal('Roster', (account, data))

View File

@ -738,8 +738,11 @@ class RosterWindow:
self.tree.get_model().clear()
for acct in gajim.connections:
self.add_account_to_roster(acct)
for jid in gajim.contacts.get_jid_list(acct):
self.add_contact_to_roster(jid, acct)
self.add_account_contacts(acct)
def add_account_contacts(self, account):
for jid in gajim.contacts.get_jid_list(account):
self.add_contact_to_roster(jid, account)
def fill_contacts_and_groups_dicts(self, array, account):
'''fill gajim.contacts and gajim.groups'''