# HG changeset patch # User Goffi # Date 1282238058 -28800 # Node ID 9e7bc7f09221d7fb3333977345ee2e323ed57534 # Parent 7baee9bb37aff5423b4d14f6b96a0c419481e5d3 Primitivus: fixed alerts on nick in contact_list diff -r 7baee9bb37af -r 9e7bc7f09221 frontends/primitivus/contact_list.py --- a/frontends/primitivus/contact_list.py Fri Aug 20 01:13:39 2010 +0800 +++ b/frontends/primitivus/contact_list.py Fri Aug 20 01:14:18 2010 +0800 @@ -95,10 +95,9 @@ nick = self.CM.getAttr(jid,'nick') display = nick or name or jid.node or jid.short header = '(*) ' if contact in self.alert_jid else '' - widget = custom_widgets.SelectableText(display, selected = contact==self.selected, header=header) + widget = custom_widgets.SelectableText(('alert' if contact in self.alert_jid else 'default',display), + selected = contact==self.selected, header=header) widget.data = contact - if contact in self.alert_jid: - widget.setAttribute('default','alert') content.append(widget) urwid.connect_signal(widget, 'change', self.__contactClicked)