This commit is contained in:
Nikos Kouremenos 2005-09-04 01:40:17 +00:00
parent aa62061700
commit 36459161fa
1 changed files with 2 additions and 5 deletions

View File

@ -287,14 +287,10 @@ class GCTooltip(BaseTooltip, StatusTable):
'</span>' + gtkgui_helpers.escape_for_pango_markup(
contact.resource)
self.text_lable.set_markup(info)
hbox.add(self.text_lable)
self.win.add(hbox)
class RosterTooltip(BaseTooltip, StatusTable):
''' Tooltip that is shown in the roster treeview '''
def __init__(self, plugin):
@ -383,7 +379,8 @@ class RosterTooltip(BaseTooltip, StatusTable):
if contact.status:
status = contact.status.strip()
if status != '':
# reduce long status (no more than 130 chars on line and no more than 5 lines)
# reduce long status
# (no more than 130 chars on line and no more than 5 lines)
status = gtkgui_helpers.reduce_chars_newlines(status, 130, 5)
# escape markup entities.
info += ' - ' + gtkgui_helpers.escape_for_pango_markup(status)