put ... if too long status msg
This commit is contained in:
parent
88aae962b5
commit
ad638f9bb9
1 changed files with 5 additions and 1 deletions
|
@ -122,7 +122,11 @@ class TabbedChatWindow(chat.Chat):
|
||||||
# this is the text for the big brown bar
|
# this is the text for the big brown bar
|
||||||
# some chars need to be escaped..
|
# some chars need to be escaped..
|
||||||
name = gtkgui_helpers.escape_for_pango_markup(contact.name)
|
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
|
jid = contact.jid
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue