diff --git a/src/chat.py b/src/chat.py index 0ed574748e08a6ccbc95984731475dd645471134..46c6d5ea28e9b898183af2e33b9b8714de13d7be 100644 --- a/src/chat.py +++ b/src/chat.py @@ -268,6 +268,9 @@ class Chat: tag = conversation_buffer.create_tag('small') tag.set_property('scale', pango.SCALE_SMALL) + tag = conversation_buffer.create_tag('grey') + tag.set_property('foreground', '#9e9e9e') + tag = conversation_buffer.create_tag('url') tag.set_property('foreground', '#0000ff') tag.set_property('underline', pango.UNDERLINE_SINGLE) @@ -652,6 +655,12 @@ class Chat: adjustment.set_value(0) return False + def print_empty_line(self, jid): + textview = self.xmls[jid].get_widget('conversation_textview') + buffer = textview.get_buffer() + end_iter = buffer.get_end_iter() + buffer.insert(end_iter, '\n') + def print_conversation_line(self, text, jid, kind, name, tim, other_tags_for_name = [], other_tags_for_time = [], other_tags_for_text = []): diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index e586284d506e47e20aab0a4a70fa5c04ad22183c..bb27d747988b759892c3b100f76051858f10de20 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -190,6 +190,8 @@ class Tabbed_chat_window(chat.Chat): #restore previous conversation self.restore_conversation(user.jid) + self.print_empty_line(user.jid) + #print queued messages if self.plugin.queues[self.account].has_key(user.jid): @@ -360,4 +362,4 @@ class Tabbed_chat_window(chat.Chat): text = ':'.join(msg[2:])[0:-1] #remove the latest \n self.print_conversation_line(text, jid, kind, name, tim, - ['small'], ['small'], ['small']) + ['small'], ['small', 'grey'], ['small', 'grey'])