Mercurial > libervia-backend
diff frontends/src/primitivus/contact_list.py @ 499:28f4ce741ae5
primitivus: fixed display for selected entity in contacts list + added indentation for status message
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 04 Sep 2012 13:36:14 +0200 |
parents | 50dd2a0196c0 |
children | 00d3679976ab |
line wrap: on
line diff
--- a/frontends/src/primitivus/contact_list.py Tue Sep 04 13:34:52 2012 +0200 +++ b/frontends/src/primitivus/contact_list.py Tue Sep 04 13:36:14 2012 +0200 @@ -106,14 +106,11 @@ show_icon, show_attr = const_SHOW_ICON.get(show,('','default')) contact_disp = ('alert' if contact in self.alert_jid else show_attr, nick or name or jid.node or jid.short) display = [ show_icon + " " , contact_disp] - display_selected = [ show_icon + " " , "[ %s ]" % contact_disp[1]] if self.show_status: - status_disp = ('status',"\n" + status) if status else "" + status_disp = ('status',"\n " + status) if status else "" display.append(status_disp) - display_selected.append(status_disp) header = '(*) ' if contact in self.alert_jid else '' widget = sat_widgets.SelectableText(display, - selected_text = display_selected, selected = contact==self.selected, header=header) widget.data = contact