diff src/browser/sat_browser/main_panel.py @ 684:e876f493dccc

browser_side: follow changes made on quick_frontend for chat states and MUC symbols + minor fixes following the refactorisation: - some MUC handlers are no more needed, the presence handler is enough - move the chat states logic to quick_frontend - display MUC games symbols - remove classes contact_list.ContactsPanel, contact_panel.Occupant and contact_panel.OccupantsList - move buildPresenceStyle and setPresenceStyle to html_tools - fixes games menu callback
author souliane <souliane@mailoo.org>
date Wed, 18 Mar 2015 10:17:04 +0100
parents a90cc8fc9605
children 9877607c719a
line wrap: on
line diff
--- a/src/browser/sat_browser/main_panel.py	Thu Mar 19 20:41:46 2015 +0100
+++ b/src/browser/sat_browser/main_panel.py	Wed Mar 18 10:17:04 2015 +0100
@@ -42,7 +42,7 @@
 import base_menu
 import libervia_widget
 import editor_widget
-import contact_list
+import html_tools
 from constants import Const as C
 
 
@@ -171,7 +171,7 @@
         self.button = self.addCategory(u"◉")
         presence_menu = self.button.getSubMenu()
         for presence, presence_i18n in C.PRESENCE.items():
-            html = u'<span class="%s">◉</span> %s' % (contact_list.buildPresenceStyle(presence), presence_i18n)
+            html = u'<span class="%s">◉</span> %s' % (html_tools.buildPresenceStyle(presence), presence_i18n)
             presence_menu.addItem(html, True, base_menu.SimpleCmd(lambda presence=presence: self.changePresenceCb(presence)))
         self.parent_panel = parent
 
@@ -219,7 +219,7 @@
 
     def setPresence(self, presence):
         self._presence = presence
-        contact_list.setPresenceStyle(self.presence_bar.button, self._presence)
+        html_tools.setPresenceStyle(self.presence_bar.button, self._presence)
 
     def setStatus(self, status):
         self.status_panel.setContent({'text': status})