comparison src/browser/sat_browser/contact_list.py @ 693:1d60fa4d25a4

browser_side: fixes new message alerts
author souliane <souliane@mailoo.org>
date Thu, 16 Apr 2015 13:29:26 +0200
parents 6fc3ff3936ba
children c2f22ca12e23
comparison
equal deleted inserted replaced
692:7a9c7b9f6a28 693:1d60fa4d25a4
126 _title = ContactTitleLabel(host, 'Contacts') 126 _title = ContactTitleLabel(host, 'Contacts')
127 DOM.setStyleAttribute(_title.getElement(), "cursor", "pointer") 127 DOM.setStyleAttribute(_title.getElement(), "cursor", "pointer")
128 128
129 def on_click(contact_jid): 129 def on_click(contact_jid):
130 self.host.displayWidget(chat.Chat, contact_jid, type_=C.CHAT_ONE2ONE) 130 self.host.displayWidget(chat.Chat, contact_jid, type_=C.CHAT_ONE2ONE)
131 self.removeAlert(contact_jid, True)
131 132
132 self._contacts_panel = contact_panel.ContactsPanel(host, contacts_click=on_click, contacts_menus=(C.MENU_JID_CONTEXT, C.MENU_ROSTER_JID_CONTEXT)) 133 self._contacts_panel = contact_panel.ContactsPanel(host, contacts_click=on_click, contacts_menus=(C.MENU_JID_CONTEXT, C.MENU_ROSTER_JID_CONTEXT))
133 self._contacts_panel.setStyleName('contactPanel') # FIXME: style doesn't exists ! 134 self._contacts_panel.setStyleName('contactPanel') # FIXME: style doesn't exists !
134 self._group_panel = GroupPanel(self) 135 self._group_panel = GroupPanel(self)
135 136