urls and mail adresses are now underlined
This commit is contained in:
parent
0e6e7d2706
commit
bed206eb0e
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue