chatstate. use default color if chatstate is 'gone'

This commit is contained in:
Denis Fomin
2010-10-03 00:20:31 +04:00
parent 12623b963f
commit c820b8b399
2 changed files with 16 additions and 18 deletions

View File

@@ -47,6 +47,7 @@ class ChatstatePlugin(GajimPlugin):
for child_iter in child_iters: for child_iter in child_iters:
name = gobject.markup_escape_text(contact.get_shown_name()) name = gobject.markup_escape_text(contact.get_shown_name())
theme = gajim.config.get('roster_theme') theme = gajim.config.get('roster_theme')
if chatstate != 'gone':
color = None color = None
if chatstate == 'composing': if chatstate == 'composing':
color = gajim.config.get_per('themes', theme, color = gajim.config.get_per('themes', theme,
@@ -54,9 +55,6 @@ class ChatstatePlugin(GajimPlugin):
elif chatstate == 'inactive': elif chatstate == 'inactive':
color = gajim.config.get_per('themes', theme, color = gajim.config.get_per('themes', theme,
'state_inactive_color') 'state_inactive_color')
elif chatstate == 'gone':
color = gajim.config.get_per('themes', theme,
'state_gone_color')
elif chatstate == 'paused': elif chatstate == 'paused':
color = gajim.config.get_per('themes', theme, color = gajim.config.get_per('themes', theme,
'state_paused_color') 'state_paused_color')

View File

@@ -1,7 +1,7 @@
[info] [info]
name: Chatstate in roster name: Chatstate in roster
short_name: chatstate short_name: chatstate
version: 0.2 version: 0.3
description: Chat State Notifications in roster. description: Chat State Notifications in roster.
Font color of the contact varies depending on the chat state. Font color of the contact varies depending on the chat state.
The plugin does not work if you use custom font color for contacts in roster. The plugin does not work if you use custom font color for contacts in roster.