align better if no status message. JID was removed in favor of status message because

a. JID is static and jargonish
b. JID is visible now via tooltip and of course via vcard [where it can also be copy pasted]
c. status message has more info about the real person and his current mood so it is logical to have that in banner and remove jargon of JID
This commit is contained in:
Nikos Kouremenos 2005-07-21 18:05:04 +00:00
parent ef6643b24d
commit c47bf7e5ca
1 changed files with 7 additions and 7 deletions

View File

@ -119,9 +119,6 @@ class TabbedChatWindow(chat.Chat):
jid = contact.jid
status = contact.status
if status is None:
status = ''
#FIXME: uncomment me when we support sending messages to specific resource
# composing full jid
#fulljid = jid
@ -131,11 +128,14 @@ class TabbedChatWindow(chat.Chat):
# % (name, fulljid)
if chatstate:
label_text = '<span weight="heavy" size="x-large">%s</span> (chat state: %s)\n%s' \
% (name, chatstate, status)
label_text = \
'<span weight="heavy" size="x-large">%s</span> (chat state: %s)' \
% (name, chatstate)
else:
label_text = '<span weight="heavy" size="x-large">%s</span>\n%s' \
% (name, status)
label_text = '<span weight="heavy" size="x-large">%s</span>' % name
if status is not None:
label_text += '\n%s' % status
# setup the label that holds name and jid
banner_name_label = self.xmls[jid].get_widget('banner_name_label')