From 7d204b37c973ea73c0b8735cdb84f1daa4f91c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 26 Mar 2017 21:06:00 +0200 Subject: [PATCH] Add extension point for hyperlink handling --- src/conversation_textview.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/conversation_textview.py b/src/conversation_textview.py index 1b11e2c46..352328a02 100644 --- a/src/conversation_textview.py +++ b/src/conversation_textview.py @@ -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:]