Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
4786d0ba
by lovetox at 2020-04-10T14:57:48+02:00
1 changed file:
Changes:
| ... | ... | @@ -8,6 +8,7 @@ from gajim.common import app |
| 8 | 8 |
from gajim.common import configpaths
|
| 9 | 9 |
configpaths.init()
|
| 10 | 10 |
from gajim.common import caps_cache
|
| 11 |
+from gajim.common.helpers import AdditionalDataDict
|
|
| 11 | 12 |
|
| 12 | 13 |
from gajim.conversation_textview import ConversationTextview
|
| 13 | 14 |
from gajim.gui_interface import Interface
|
| ... | ... | @@ -15,6 +16,7 @@ from gajim.gui_interface import Interface |
| 15 | 16 |
caps_cache.capscache = MagicMock()
|
| 16 | 17 |
app.plugin_manager = MagicMock()
|
| 17 | 18 |
app.logger = MagicMock()
|
| 19 |
+app.cert_store = MagicMock()
|
|
| 18 | 20 |
app.interface = Interface()
|
| 19 | 21 |
|
| 20 | 22 |
|
| ... | ... | @@ -204,7 +206,10 @@ class TextviewWindow(Gtk.Window): |
| 204 | 206 |
|
| 205 | 207 |
def _print_xhtml(self):
|
| 206 | 208 |
for xhtml in XHTML:
|
| 207 |
- self._textview.print_real_text(None, xhtml=xhtml)
|
|
| 209 |
+ additional_data = AdditionalDataDict()
|
|
| 210 |
+ additional_data.set_value('gajim', 'xhtml', xhtml)
|
|
| 211 |
+ self._textview.print_real_text(None, additional_data=additional_data)
|
|
| 212 |
+ self._textview.print_real_text('\n')
|
|
| 208 | 213 |
|
| 209 | 214 |
win = TextviewWindow()
|
| 210 | 215 |
win.connect("destroy", Gtk.main_quit)
|