changeset 2caf7d2aaea7 in /home/hg/repos/gajim
author: tmolitor thilo@eightysoft.de branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=2caf7d2aaea7 description: Added new gui extension point 'print_real_text' which is executed before the message line is printed
diffstat:
src/conversation_textview.py | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 3b09dc50a020 -r 2caf7d2aaea7 src/conversation_textview.py --- a/src/conversation_textview.py Mon Sep 05 19:02:43 2016 +0200 +++ b/src/conversation_textview.py Mon Sep 05 20:24:13 2016 +0200 @@ -1102,7 +1102,6 @@ (emots, links, formatting) """
- # PluginSystem: adding GUI extension point for ConversationTextview self.plugin_modified = False gajim.plugin_manager.gui_extension_point('print_special_text', self, @@ -1488,6 +1487,14 @@ if name and (text.startswith('/me ') or text.startswith('/me\n')): text = '* ' + name + text[3:] text_tags.append('italic') + + # PluginSystem: adding GUI extension point for ConversationTextview + self.plugin_modified = False + gajim.plugin_manager.gui_extension_point('print_real_text', self, + text, text_tags, graphics, iter_, additional_data) + if self.plugin_modified: + return self.tv.get_buffer().get_end_iter() + # detect urls formatting and if the user has it on emoticons return self.detect_and_print_special_text(text, text_tags, graphics=graphics, iter_=iter_, additional_data=additional_data)