Author: steve-e Date: 2008-05-19 22:08:32 +0200 (Mon, 19 May 2008) New Revision: 9683
Modified: trunk/src/gajim.py trunk/src/roster_window.py Log: Remove some extra model refiltering.
Whenever we write to the underlying child_model gtk will call the _visible_func on itself.
Modified: trunk/src/gajim.py =================================================================== --- trunk/src/gajim.py 2008-05-19 20:04:48 UTC (rev 9682) +++ trunk/src/gajim.py 2008-05-19 20:08:32 UTC (rev 9683) @@ -910,7 +910,6 @@ # It must be an agent if ji in jid_list: # Update existing iter - self.roster.modelfilter.refilter() self.roster.draw_contact(ji, account) self.roster.draw_group(_('Transports'), account) if new_show > 1 and ji in gajim.transport_avatar[account]:
Modified: trunk/src/roster_window.py =================================================================== --- trunk/src/roster_window.py 2008-05-19 20:04:48 UTC (rev 9682) +++ trunk/src/roster_window.py 2008-05-19 20:08:32 UTC (rev 9683) @@ -829,8 +829,6 @@ if jid in gajim.newly_added[account]: gajim.newly_added[account].remove(jid) self.draw_contact(jid, account) - # redraw group visibility - self.refilter_shown_roster_items()
# FIXME: maybe move to gajim.py def remove_to_be_removed(self, jid, account): @@ -842,7 +840,6 @@ if jid in gajim.to_be_removed[account]: gajim.to_be_removed[account].remove(jid) self.draw_contact(jid, account) - self.refilter_shown_roster_items() #FIXME: integrate into add_contact() def add_to_not_in_the_roster(self, account, jid, nick = '', resource = ''):