don't remove / readd timeout, just lt it run. It's a bit faster. see #3718

This commit is contained in:
Yann Leboulanger 2008-02-03 21:19:24 +00:00
parent 4d55bbf842
commit 167aff1fdb
1 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ class RosterWindow:
def really_draw_account(self, account):
if account in self.draw_account_id:
del self.draw_account_id[account]
return
model = self.tree.get_model()
iter = self.get_account_iter(account)
@ -407,7 +407,7 @@ class RosterWindow:
def draw_group(self, group, account):
key = (group, account)
if key in self.draw_group_id:
gobject.source_remove(self.draw_group_id[key])
return
self.draw_group_id[key] = gobject.timeout_add(500,
self.really_draw_group, group, account)