Philipp Hörist pushed to branch master at gajim / gajim
Commits:
f0c4c901 by Philipp Hörist at 2024-08-14T08:57:13+02:00
fix: Fix wrapping lines for long words
- - - - -
1 changed file:
- gajim/gtk/conversation/plain_widget.py
Changes:
=====================================
gajim/gtk/conversation/plain_widget.py
=====================================
@@ -5,6 +5,7 @@
from __future__ import annotations
import logging
+import os
import emoji
from gi.repository import Gdk
@@ -59,7 +60,10 @@ def __init__(self, account: str, selectable: bool) -> None:
self.set_xalign(0)
# WrapMode.WORD_CHAR can cause a segfault
# https://gitlab.gnome.org/GNOME/pango/-/issues/798
- self.set_line_wrap_mode(Pango.WrapMode.WORD)
+ if os.environ['GAJIM_FORCE_WORD_WRAP']:
+ self.set_line_wrap_mode(Pango.WrapMode.WORD)
+ else:
+ self.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
self.set_track_visited_links(False)
self._account = account
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/f0c4c901be24373a1824a9b25598b309c33073c0
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/f0c4c901be24373a1824a9b25598b309c33073c0
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]