Mercurial > libervia-web
comparison src/browser/sat_browser/contact_list.py @ 754:d3fa1e8904cf
browser_side: display the number of alerts for each contact and not only a symbol (*) + favicon displays the total number of waiting messages
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 24 Nov 2015 13:33:19 +0100 |
parents | 0d5889b9313c |
children | dd70db1c48dc |
comparison
equal
deleted
inserted
replaced
753:76a9c074327b | 754:d3fa1e8904cf |
---|---|
127 _title = ContactTitleLabel(host, 'Contacts') | 127 _title = ContactTitleLabel(host, 'Contacts') |
128 DOM.setStyleAttribute(_title.getElement(), "cursor", "pointer") | 128 DOM.setStyleAttribute(_title.getElement(), "cursor", "pointer") |
129 | 129 |
130 def on_click(contact_jid): | 130 def on_click(contact_jid): |
131 self.host.displayWidget(chat.Chat, contact_jid, type_=C.CHAT_ONE2ONE) | 131 self.host.displayWidget(chat.Chat, contact_jid, type_=C.CHAT_ONE2ONE) |
132 self.removeAlert(contact_jid, True) | 132 self.removeAlerts(contact_jid, True) |
133 | 133 |
134 self._contacts_panel = contact_panel.ContactsPanel(host, contacts_click=on_click, contacts_menus=(C.MENU_JID_CONTEXT, C.MENU_ROSTER_JID_CONTEXT)) | 134 self._contacts_panel = contact_panel.ContactsPanel(host, contacts_click=on_click, contacts_menus=(C.MENU_JID_CONTEXT, C.MENU_ROSTER_JID_CONTEXT)) |
135 self._contacts_panel.setStyleName('contactPanel') # FIXME: style doesn't exists ! | 135 self._contacts_panel.setStyleName('contactPanel') # FIXME: style doesn't exists ! |
136 self._group_panel = GroupPanel(self) | 136 self._group_panel = GroupPanel(self) |
137 | 137 |