# HG changeset patch # User Goffi # Date 1346758574 -7200 # Node ID 28f4ce741ae5c93ce5b1b961c82a42416a8e63f4 # Parent 9cc2ffd293f2383cde44c52446758f1d685c7874 primitivus: fixed display for selected entity in contacts list + added indentation for status message diff -r 9cc2ffd293f2 -r 28f4ce741ae5 frontends/src/primitivus/contact_list.py --- 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