Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits:
d07283da by lovetox at 2021-04-13T23:46:08+02:00
Fix Info message
- - - - -
1 changed file:
- gajim/gtk/conversation/rows/info.py
Changes:
=====================================
gajim/gtk/conversation/rows/info.py
=====================================
@@ -19,8 +19,10 @@
from gajim.common.const import AvatarSize
from gajim.common.i18n import _
+from gajim.common.styling import process
from .base import BaseRow
+from ..message_widget import MessageWidget
class InfoMessageRow(BaseRow):
@@ -56,12 +58,9 @@ def __init__(self,
timestamp_widget.set_valign(Gtk.Align.START)
self.grid.attach(timestamp_widget, 2, 0, 1, 1)
- self.textview.set_justification(Gtk.Justification.CENTER)
- self.textview.print_text(
- text,
- other_text_tags=other_text_tags,
- kind=kind,
- graphics=graphics)
+ result = process(text)
+ message_widget = MessageWidget(account)
+ message_widget.add_content(result.blocks)
- self.grid.attach(self.textview, 1, 0, 1, 1)
+ self.grid.attach(message_widget, 1, 0, 1, 1)
self.show_all()
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d07283dab924d9c300f94d44dba671c903767050
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d07283dab924d9c300f94d44dba671c903767050
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits