Visual Test : show after the nick in tooltip

This commit is contained in:
Jean-Marie Traissard 2006-09-25 16:02:13 +00:00
parent ee7b16c405
commit 37c08ee033
1 changed files with 7 additions and 10 deletions

View File

@ -366,14 +366,11 @@ class GCTooltip(BaseTooltip):
properties = []
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)
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 :
if contact.status:
@ -411,8 +408,8 @@ class GCTooltip(BaseTooltip):
while properties:
property = properties.pop(0)
vcard_current_row += 1
if vcard_current_row == 4 and not status_message_present or\
vcard_current_row == 5 and status_message_present:
if vcard_current_row == 3 and not status_message_present or\
vcard_current_row == 4 and status_message_present:
# horizontal separator after status, if something after
h_separator = gtk.HSeparator()
vcard_table.attach(h_separator, 1, 3, vcard_current_row, vcard_current_row + 1,\