diff frontends/src/primitivus/contact_list.py @ 737:378af36155c2

frontends: set and retrieve your own presence and status
author souliane <souliane@mailoo.org>
date Mon, 25 Nov 2013 01:56:07 +0100
parents 6246eb6d64a0
children bfabeedbf32e
line wrap: on
line diff
--- a/frontends/src/primitivus/contact_list.py	Sat Nov 23 10:21:40 2013 +0100
+++ b/frontends/src/primitivus/contact_list.py	Mon Nov 25 01:56:07 2013 +0100
@@ -22,6 +22,7 @@
 from sat_frontends.quick_frontend.quick_contact_list import QuickContactList
 from sat_frontends.quick_frontend.quick_utils import escapePrivate, unescapePrivate
 from sat.tools.jid import JID
+from sat_frontends.primitivus.status import StatusBar
 from sat_frontends.primitivus.constants import Const
 
 class ContactList(urwid.WidgetWrap, QuickContactList):
@@ -37,7 +38,8 @@
         self.show_disconnected = False
 
         #we now build the widget
-        self.frame = urwid.Frame(self.__buildList())
+        self.host.status_bar = StatusBar(host)
+        self.frame = urwid.Frame(self.__buildList(), None, self.host.status_bar)
         self.main_widget = sat_widgets.LabelLine(self.frame, sat_widgets.SurroundedText(_("Contacts")))
         urwid.WidgetWrap.__init__(self, self.main_widget)
         if on_click: