Visual Test : show after the nick in tooltip
This commit is contained in:
parent
ee7b16c405
commit
37c08ee033
|
@ -366,14 +366,11 @@ class GCTooltip(BaseTooltip):
|
||||||
properties = []
|
properties = []
|
||||||
status_message_present = False
|
status_message_present = False
|
||||||
|
|
||||||
nick_markup = '<span weight="bold">' + \
|
|
||||||
gtkgui_helpers.escape_for_pango_markup(contact.get_shown_name()) \
|
|
||||||
+ '</span>'
|
|
||||||
properties.append((nick_markup, None))
|
|
||||||
|
|
||||||
# status :
|
|
||||||
show = helpers.get_uf_show(contact.show)
|
show = helpers.get_uf_show(contact.show)
|
||||||
properties.append((show, None))
|
nick_show_markup = '<span weight="bold">' + \
|
||||||
|
gtkgui_helpers.escape_for_pango_markup(contact.get_shown_name()) \
|
||||||
|
+ '</span> (' + show + ')'
|
||||||
|
properties.append((nick_show_markup, None))
|
||||||
|
|
||||||
#status message :
|
#status message :
|
||||||
if contact.status:
|
if contact.status:
|
||||||
|
@ -411,8 +408,8 @@ class GCTooltip(BaseTooltip):
|
||||||
while properties:
|
while properties:
|
||||||
property = properties.pop(0)
|
property = properties.pop(0)
|
||||||
vcard_current_row += 1
|
vcard_current_row += 1
|
||||||
if vcard_current_row == 4 and not status_message_present or\
|
if vcard_current_row == 3 and not status_message_present or\
|
||||||
vcard_current_row == 5 and status_message_present:
|
vcard_current_row == 4 and status_message_present:
|
||||||
# horizontal separator after status, if something after
|
# horizontal separator after status, if something after
|
||||||
h_separator = gtk.HSeparator()
|
h_separator = gtk.HSeparator()
|
||||||
vcard_table.attach(h_separator, 1, 3, vcard_current_row, vcard_current_row + 1,\
|
vcard_table.attach(h_separator, 1, 3, vcard_current_row, vcard_current_row + 1,\
|
||||||
|
|
Loading…
Reference in New Issue