Philipp Hörist pushed to branch master at gajim / gajim
Commits:
1e7b2036 by Philipp Hörist at 2024-08-14T09:38:49+02:00
cfix: Don’t fail on missing env var
- - - - -
1 changed file:
- gajim/gtk/conversation/plain_widget.py
Changes:
=====================================
gajim/gtk/conversation/plain_widget.py
=====================================
@@ -60,7 +60,7 @@ 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
- if os.environ['GAJIM_FORCE_WORD_WRAP']:
+ if os.environ.get('GAJIM_FORCE_WORD_WRAP'):
self.set_line_wrap_mode(Pango.WrapMode.WORD)
else:
self.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/1e7b20366d496b1eb4672b7f31219abb651bbe3c
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/1e7b20366d496b1eb4672b7f31219abb651bbe3c
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]