put ... if too long status msg

This commit is contained in:
Nikos Kouremenos 2005-07-21 22:42:30 +00:00
parent 88aae962b5
commit ad638f9bb9
1 changed files with 5 additions and 1 deletions

View File

@ -122,7 +122,11 @@ class TabbedChatWindow(chat.Chat):
# this is the text for the big brown bar
# some chars need to be escaped..
name = gtkgui_helpers.escape_for_pango_markup(contact.name)
status = gtkgui_helpers.escape_for_pango_markup(contact.status)
status = contact.status
if len(status) > 25: #FIXME: do me with pango ellipseEND when gtk24 is OLD
status = status[:21] + '...'
status = gtkgui_helpers.escape_for_pango_markup(status)
jid = contact.jid