From 83e3a2b4c94886a6f86635da421625ff6669e89a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 31 Mar 2007 09:40:13 +0000 Subject: [PATCH] wrap lines in roster tooltip. so we can increase width of status to 300 chars width. fixes #2966 --- src/tooltips.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tooltips.py b/src/tooltips.py index 49194e0f5..69142ae9b 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -482,8 +482,9 @@ class RosterTooltip(NotificationAreaTooltip): status = contact.status.strip() if status: # reduce long status - # (no more than 100 chars on line and no more than 5 lines) - status = helpers.reduce_chars_newlines(status, 100, 5) + # (no more than 300 chars on line and no more than 5 lines) + # status is wrapped + status = helpers.reduce_chars_newlines(status, 300, 5) # escape markup entities. status = gobject.markup_escape_text(status) properties.append(('%s' % status, None)) @@ -534,6 +535,7 @@ class RosterTooltip(NotificationAreaTooltip): else: if isinstance(property[0], (unicode, str)): #FIXME: rm unicode? label.set_markup(property[0]) + label.set_line_wrap(True) else: label = property[0] vcard_table.attach(label, 1, 3, vcard_current_row,