From 37c08ee03337129b10372c84bd1b9a407b54a499 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Mon, 25 Sep 2006 16:02:13 +0000 Subject: [PATCH] Visual Test : show after the nick in tooltip --- src/tooltips.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/tooltips.py b/src/tooltips.py index 9857bd0a0..b5ff6af85 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -366,15 +366,12 @@ class GCTooltip(BaseTooltip): properties = [] status_message_present = False - nick_markup = '' + \ - gtkgui_helpers.escape_for_pango_markup(contact.get_shown_name()) \ - + '' - properties.append((nick_markup, None)) - - # status : show = helpers.get_uf_show(contact.show) - properties.append((show, None)) - + nick_show_markup = '' + \ + gtkgui_helpers.escape_for_pango_markup(contact.get_shown_name()) \ + + ' (' + show + ')' + properties.append((nick_show_markup, None)) + #status message : if contact.status: status_message = contact.status.strip() @@ -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,\