urls and mail adresses are now underlined

This commit is contained in:
Yann Leboulanger 2005-03-09 22:32:20 +00:00
parent 0e6e7d2706
commit bed206eb0e
1 changed files with 2 additions and 0 deletions

View File

@ -432,9 +432,11 @@ class tabbed_chat_window:
tag.set_property('foreground', color)
if special == 'mail':
tag.set_property('foreground', '#0000ff')
tag.set_property('underline', pango.UNDERLINE_SINGLE)
tag.connect('event', self.hyperlink_handler, 'mail')
elif special == 'url':
tag.set_property('foreground', '#0000ff')
tag.set_property('underline', pango.UNDERLINE_SINGLE)
tag.connect('event', self.hyperlink_handler, 'url')
elif special == 'italic':
tag.set_property('style', pango.STYLE_ITALIC)