update URL and Mail colors in chat windows instantly.
This commit is contained in:
parent
ba7e4a0ae7
commit
2bbebe11c6
|
@ -109,18 +109,18 @@ class ConversationTextview:
|
||||||
color = gajim.config.get('restored_messages_color')
|
color = gajim.config.get('restored_messages_color')
|
||||||
tag.set_property('foreground', color)
|
tag.set_property('foreground', color)
|
||||||
|
|
||||||
tag = buffer.create_tag('url')
|
self.tagURL = buffer.create_tag('url')
|
||||||
color = gajim.config.get('urlmsgcolor')
|
color = gajim.config.get('urlmsgcolor')
|
||||||
tag.set_property('foreground', color)
|
self.tagURL.set_property('foreground', color)
|
||||||
tag.set_property('underline', pango.UNDERLINE_SINGLE)
|
self.tagURL.set_property('underline', pango.UNDERLINE_SINGLE)
|
||||||
id = tag.connect('event', self.hyperlink_handler, 'url')
|
id = self.tagURL.connect('event', self.hyperlink_handler, 'url')
|
||||||
self.handlers[id] = tag
|
self.handlers[id] = self.tagURL
|
||||||
|
|
||||||
tag = buffer.create_tag('mail')
|
self.tagMail = buffer.create_tag('mail')
|
||||||
tag.set_property('foreground', color)
|
self.tagMail.set_property('foreground', color)
|
||||||
tag.set_property('underline', pango.UNDERLINE_SINGLE)
|
self.tagMail.set_property('underline', pango.UNDERLINE_SINGLE)
|
||||||
id = tag.connect('event', self.hyperlink_handler, 'mail')
|
id = self.tagMail.connect('event', self.hyperlink_handler, 'mail')
|
||||||
self.handlers[id] = tag
|
self.handlers[id] = self.tagMail
|
||||||
|
|
||||||
tag = buffer.create_tag('bold')
|
tag = buffer.create_tag('bold')
|
||||||
tag.set_property('weight', pango.WEIGHT_BOLD)
|
tag.set_property('weight', pango.WEIGHT_BOLD)
|
||||||
|
@ -158,6 +158,8 @@ class ConversationTextview:
|
||||||
self.tagOut.set_property('foreground', gajim.config.get('outmsgcolor'))
|
self.tagOut.set_property('foreground', gajim.config.get('outmsgcolor'))
|
||||||
self.tagStatus.set_property('foreground',
|
self.tagStatus.set_property('foreground',
|
||||||
gajim.config.get('statusmsgcolor'))
|
gajim.config.get('statusmsgcolor'))
|
||||||
|
self.tagURL.set_property('foreground', gajim.config.get('urlmsgcolor'))
|
||||||
|
self.tagMail.set_property('foreground', gajim.config.get('urlmsgcolor'))
|
||||||
|
|
||||||
def at_the_end(self):
|
def at_the_end(self):
|
||||||
buffer = self.tv.get_buffer()
|
buffer = self.tv.get_buffer()
|
||||||
|
|
Loading…
Reference in New Issue