Add extension point for hyperlink handling

This commit is contained in:
Philipp Hörist 2017-03-26 21:06:00 +02:00
parent 6b34ea957e
commit 7d204b37c9
1 changed files with 7 additions and 0 deletions

View File

@ -863,6 +863,13 @@ class ConversationTextview(GObject.GObject):
self.make_link_menu(event, kind, word)
return True
else:
self.plugin_modified = False
gajim.plugin_manager.gui_extension_point(
'hyperlink_handler', word, kind, self,
self.tv.get_toplevel())
if self.plugin_modified:
return
# we launch the correct application
if kind == 'xmpp':
word = word[5:]