[commit-gajim] r11233 - trunk/src
asterix at gajim.org
asterix at gajim.org
Wed Apr 22 10:43:05 CEST 2009
Author: asterix
Date: 2009-04-22 10:43:04 +0200 (Wed, 22 Apr 2009)
New Revision: 11233
Modified:
trunk/src/dialogs.py
Log:
[tpatnoe] add In and Out comment in XML console. Fixes #4977
Modified: trunk/src/dialogs.py
===================================================================
--- trunk/src/dialogs.py 2009-04-22 08:39:10 UTC (rev 11232)
+++ trunk/src/dialogs.py 2009-04-22 08:43:04 UTC (rev 11233)
@@ -2506,9 +2506,14 @@
self.tagIn = buffer_.create_tag('incoming')
color = gajim.config.get('inmsgcolor')
self.tagIn.set_property('foreground', color)
+ self.tagInComment = buffer_.create_tag('in_comment')
+ self.tagInComment.set_property('foreground', color)
+
self.tagOut = buffer_.create_tag('outgoing')
color = gajim.config.get('outmsgcolor')
self.tagOut.set_property('foreground', color)
+ self.tagOutComment = buffer_.create_tag('out_comment')
+ self.tagOutComment.set_property('foreground', color)
self.enabled = False
@@ -2562,6 +2567,13 @@
if end_rect.y <= (visible_rect.y + visible_rect.height):
at_the_end = True
end_iter = buffer.get_end_iter()
+ if kind == 'incoming':
+ buffer.insert_with_tags_by_name(end_iter, '<!-- In -->\n',
+ 'in_comment')
+ elif kind == 'outgoing':
+ buffer.insert_with_tags_by_name(end_iter, '<!-- Out -->\n',
+ 'out_comment')
+ end_iter = buffer.get_end_iter()
buffer.insert_with_tags_by_name(end_iter, stanza.replace('><', '>\n<') + \
'\n\n', kind)
if at_the_end:
More information about the Commits
mailing list