set_line_wrap, instead of putting message on the

next line
This commit is contained in:
Dimitur Kirov 2006-03-21 20:25:53 +00:00
parent a6700273d9
commit a71924dba4
1 changed files with 2 additions and 4 deletions

View File

@ -523,9 +523,6 @@ class RosterTooltip(NotificationAreaTooltip):
status = gtkgui_helpers.reduce_chars_newlines(status, 130, 5) status = gtkgui_helpers.reduce_chars_newlines(status, 130, 5)
# escape markup entities. # escape markup entities.
status = gtkgui_helpers.escape_for_pango_markup(status) status = gtkgui_helpers.escape_for_pango_markup(status)
if len(status) > 10:
show += '\n' + status
else:
show += ' - ' + status show += ' - ' + status
properties.append((_('Status: '), show)) properties.append((_('Status: '), show))
@ -559,6 +556,7 @@ class RosterTooltip(NotificationAreaTooltip):
else: else:
label.set_alignment(0, 0) label.set_alignment(0, 0)
label.set_markup(property[1]) label.set_markup(property[1])
label.set_line_wrap(True)
vcard_table.attach(label, 2, 3, vcard_current_row, vcard_current_row + 1, vcard_table.attach(label, 2, 3, vcard_current_row, vcard_current_row + 1,
gtk.EXPAND | gtk.FILL, vertical_fill, 0, 0) gtk.EXPAND | gtk.FILL, vertical_fill, 0, 0)
else: else: