show all incoming chatstate, even if we send only composing.

This commit is contained in:
Yann Leboulanger 2006-09-13 07:20:49 +00:00
parent ab9b5a3210
commit a3a91eada6
1 changed files with 7 additions and 7 deletions

View File

@ -1042,9 +1042,9 @@ class ChatControl(ChatControlBase):
if cs and st in ('composing_only', 'all'): if cs and st in ('composing_only', 'all'):
if contact.show == 'offline': if contact.show == 'offline':
chatstate = '' chatstate = ''
elif st == 'all' and contact.composing_jep == 'JEP-0085': elif contact.composing_jep == 'JEP-0085':
chatstate = helpers.get_uf_chatstate(cs) chatstate = helpers.get_uf_chatstate(cs)
elif st == 'composing_only' or contact.composing_jep == 'JEP-0022': elif contact.composing_jep == 'JEP-0022':
if cs in ('composing', 'paused'): if cs in ('composing', 'paused'):
# only print composing, paused # only print composing, paused
chatstate = helpers.get_uf_chatstate(cs) chatstate = helpers.get_uf_chatstate(cs)
@ -1054,14 +1054,14 @@ class ChatControl(ChatControlBase):
chatstate = helpers.get_uf_chatstate(cs) chatstate = helpers.get_uf_chatstate(cs)
label_text = '<span %s>%s</span><span %s>%s %s</span>' % \ label_text = '<span %s>%s</span><span %s>%s %s</span>' % \
(font_attrs, name, font_attrs_small, acct_info, chatstate) (font_attrs, name, font_attrs_small, acct_info, chatstate)
else: else:
# weight="heavy" size="x-large" # weight="heavy" size="x-large"
label_text = '<span %s>%s</span><span %s>%s</span>' % \ label_text = '<span %s>%s</span><span %s>%s</span>' % \
(font_attrs, name, font_attrs_small, acct_info) (font_attrs, name, font_attrs_small, acct_info)
if status_escaped: if status_escaped:
label_text += '\n<span %s>%s</span>' %\ label_text += '\n<span %s>%s</span>' %\
(font_attrs_small, status_escaped) (font_attrs_small, status_escaped)
banner_eventbox = self.xml.get_widget('banner_eventbox') banner_eventbox = self.xml.get_widget('banner_eventbox')
self.status_tooltip.set_tip(banner_eventbox, status) self.status_tooltip.set_tip(banner_eventbox, status)
self.status_tooltip.enable() self.status_tooltip.enable()