add an ACE option to hide the avatar in tabbed chat window

This commit is contained in:
Yann Leboulanger 2006-01-08 01:18:16 +00:00
parent ca2f5f7c32
commit 7fdbba76d7
2 changed files with 3 additions and 0 deletions

View File

@ -176,6 +176,7 @@ class Config:
'use_urgency_hint': [opt_bool, True, _('If True and installed GTK+ and PyGTK versions are at least 2.8, make the window flash (the default behaviour in most Window Managers) when holding pending events.')],
'notification_timeout': [opt_int, 5],
'send_sha_in_gc_presence': [opt_bool, True, _('Jabberd1.4 does not like sha info when one join a password protected room. Turn this option to False to stop sending sha info in groupchat presences')],
'show_avatar_in_chat': [opt_boot, True, _('If False, you will no longer see the avatar in the chat window')],
}
__options_per_key = {

View File

@ -301,6 +301,8 @@ class TabbedChatWindow(chat.Chat):
def show_avatar(self, jid, resource):
# Get the XML instance
if not gajim.config.get('show_avatar_in_chat'):
return
jid_with_resource = jid
if resource:
jid_with_resource += '/' + resource