From 76139fefdc82893eb0a1c2063de77d54b779e1b8 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 7 Dec 2005 16:28:04 +0000 Subject: [PATCH] print subject BEFORE conversation lines in chat mode --- src/conversation_textview.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/conversation_textview.py b/src/conversation_textview.py index 853714fc2..ae1b7df9a 100644 --- a/src/conversation_textview.py +++ b/src/conversation_textview.py @@ -592,14 +592,14 @@ class ConversationTextview(gtk.TextView): format = before_str + name + after_str + ' ' buffer.insert_with_tags_by_name(end_iter, format, *name_tags) - # detect urls formatting and if the user has it on emoticons - index = self.detect_and_print_special_text(text, jid, text_tags) - if subject: # if we have subject, show it too! subject = _('Subject: %s\n') % subject end_iter = buffer.get_end_iter() buffer.insert(end_iter, subject) - + + # detect urls formatting and if the user has it on emoticons + index = self.detect_and_print_special_text(text, jid, text_tags) + # add the rest of text located in the index and after end_iter = buffer.get_end_iter() buffer.insert_with_tags_by_name(end_iter, text[index:], *text_tags)