comparison src/browser/sat_browser/contact_list.py @ 688:6fc3ff3936ba

browser_side: ContactList.remove has been renamed to ContactList.removeContact to not interfer with Pyjamas Panel.remove (overriding not needed anymore)
author souliane <souliane@mailoo.org>
date Wed, 01 Apr 2015 22:04:17 +0200
parents 3845a086f0b3
children 1d60fa4d25a4
comparison
equal deleted inserted replaced
687:3845a086f0b3 688:6fc3ff3936ba
174 to_show = [jid_ for jid_ in self.roster_entities if self.entityToShow(jid_) and jid_ != self.whoami.bare] 174 to_show = [jid_ for jid_ in self.roster_entities if self.entityToShow(jid_) and jid_ != self.whoami.bare]
175 to_show.sort() 175 to_show.sort()
176 176
177 self._contacts_panel.setList(to_show) 177 self._contacts_panel.setList(to_show)
178 178
179 def remove(self, entity):
180 # FIXME: SimplePanel and QuickContactList both have a 'remove' method
181 QuickContactList.remove(self, entity)
182
183 def onWindowResized(self, width, height): 179 def onWindowResized(self, width, height):
184 ideal_height = height - DOM.getAbsoluteTop(self.getElement()) - 5 180 ideal_height = height - DOM.getAbsoluteTop(self.getElement()) - 5
185 tab_panel = self.host.panel.tab_panel 181 tab_panel = self.host.panel.tab_panel
186 if tab_panel.getWidgetCount() > 1: 182 if tab_panel.getWidgetCount() > 1:
187 ideal_height -= tab_panel.getTabBar().getOffsetHeight() 183 ideal_height -= tab_panel.getTabBar().getOffsetHeight()