Mercurial > libervia-web
diff src/browser/sat_browser/contact_list.py @ 594:a099990f77a6 frontends_multi_profiles
browser side: border widgets are now visible on drag start + they float right or left in the cell
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 06 Feb 2015 19:11:02 +0100 |
parents | c66f7227848e |
children | 32dbbc941123 |
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_list.py Fri Feb 06 17:49:04 2015 +0100 +++ b/src/browser/sat_browser/contact_list.py Fri Feb 06 19:11:02 2015 +0100 @@ -73,10 +73,9 @@ class GroupLabel(base_widget.DragLabel, Label, ClickHandler): def __init__(self, host, group): self.group = group - self.host = host Label.__init__(self, group) # , Element=DOM.createElement('div') self.setStyleName('group') - base_widget.DragLabel.__init__(self, group, "GROUP") + base_widget.DragLabel.__init__(self, group, "GROUP", host) ClickHandler.__init__(self) self.addClickListener(self) @@ -125,8 +124,7 @@ def __init__(self, host, jid_, name=None, click_listener=None, handle_menu=None): VerticalPanel.__init__(self, StyleName='contactBox', VerticalAlignment='middle') - base_widget.DragLabel.__init__(self, jid_, "CONTACT") - self.host = host + base_widget.DragLabel.__init__(self, jid_, "CONTACT", host) self.jid = jid_ self.label = ContactLabel(jid_, name) self.avatar = ContactMenuBar(self, host) if handle_menu else Image() @@ -306,9 +304,8 @@ class ContactTitleLabel(base_widget.DragLabel, Label, ClickHandler): def __init__(self, host, text): Label.__init__(self, text) # , Element=DOM.createElement('div') - self.host = host self.setStyleName('contactTitle') - base_widget.DragLabel.__init__(self, text, "CONTACT_TITLE") + base_widget.DragLabel.__init__(self, text, "CONTACT_TITLE", host) ClickHandler.__init__(self) self.addClickListener(self)