comparison src/browser/sat_browser/main_panel.py @ 944:5d9f6d25c586

browser: various fixes this is a first pass to fix main Libervia features which have been broken with changes in backend: - fixed Chat signature - added/removed/replaced a couple of missing methods - use contact_list_widget instead of contact_list when needed
author Goffi <goffi@goffi.org>
date Fri, 19 May 2017 17:03:04 +0200
parents 2ef71ec07d87
children fd4eae654182
comparison
equal deleted inserted replaced
943:aacda981c348 944:5d9f6d25c586
295 295
296 def _contactsSwitch(self, btn=None): 296 def _contactsSwitch(self, btn=None):
297 """ (Un)hide contacts panel """ 297 """ (Un)hide contacts panel """
298 if btn is None: 298 if btn is None:
299 btn = self.contacts_switch 299 btn = self.contacts_switch
300 clist = self.host.contact_list 300 clist = self.host.contact_list_widget
301 clist.setVisible(not clist.getVisible()) 301 clist.setVisible(not clist.getVisible())
302 btn.setText(u"«" if clist.getVisible() else u"»") 302 btn.setText(u"«" if clist.getVisible() else u"»")
303 self.host.resize() 303 self.host.resize()
304 304
305 def _contactsMove(self, parent): 305 def _contactsMove(self, parent):
310 if self._contacts.getParent(): 310 if self._contacts.getParent():
311 if self._contacts.getParent() == parent: 311 if self._contacts.getParent() == parent:
312 return 312 return
313 self._contacts.removeFromParent() 313 self._contacts.removeFromParent()
314 parent.insert(self._contacts, 0) 314 parent.insert(self._contacts, 0)
315
316
317