From fd719bcbc689c72753f53c3599391b6d9bad0eee Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 28 Aug 2006 15:10:23 +0000 Subject: [PATCH] add an advanced option: restored_message_small tu disable small font in restored messages. Fixes #2048 --- src/chat_control.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index c5410d901..f3d7a4d65 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1500,10 +1500,14 @@ class ChatControl(ChatControlBase): tim = time.localtime(float(row[0])) + if gajim.config.get('restored_messages_small'): + small_attr = ['small'] + else: + small_attr = [] ChatControlBase.print_conversation_line(self, row[2], kind, name, tim, - ['small'], - ['small', 'restored_message'], - ['small', 'restored_message'], + small_attr, + small_attr + ['restored_message'], + small_attr + ['restored_message'], False, old_kind = local_old_kind) if row[2].startswith('/me ') or row[2].startswith('/me\n'): local_old_kind = None