Philipp Hörist pushed to branch master at gajim / gajim


Commits:
571f0127 by Philipp Hörist at 2024-06-03T22:13:51+02:00
fix: MessageLabel: Prevent potential segfault

- - - - -


1 changed file:

- gajim/gtk/conversation/plain_widget.py


Changes:

=====================================
gajim/gtk/conversation/plain_widget.py
=====================================
@@ -57,7 +57,9 @@ def __init__(self, account: str, selectable: bool) -> None:
         self.set_selectable(selectable)
         self.set_line_wrap(True)
         self.set_xalign(0)
-        self.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
+        # WrapMode.WORD_CHAR can cause a segfault
+        # https://gitlab.gnome.org/GNOME/pango/-/issues/798
+        self.set_line_wrap_mode(Pango.WrapMode.WORD)
         self.set_track_visited_links(False)
 
         self._account = account



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/571f012784fc898e0e780db2aa1114569e014111

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/571f012784fc898e0e780db2aa1114569e014111
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to