Daniel Brötzmann pushed to branch gtk4 at gajim / gajim


Commits:
e916aafa by wurstsalat at 2024-10-04T16:24:53+02:00
temporarily switch GSK renderer on windows

- - - - -
9f858b60 by wurstsalat at 2024-10-04T16:24:53+02:00
temporarily disable exception window on Windows

- - - - -


2 changed files:

- gajim/gtk/application.py
- gajim/gtk/exception.py


Changes:

=====================================
gajim/gtk/application.py
=====================================
@@ -215,6 +215,12 @@ def _startup(self) -> None:
             # to render colored emoji glyphs
             os.environ['PANGOCAIRO_BACKEND'] = 'fontconfig'
 
+        if sys.platform == 'win32':
+            # TODO GTK4
+            # https://gitlab.gnome.org/GNOME/gtk/-/issues/7019
+            # Remove once GTK >4.16.2 is released
+            os.environ['GSK_RENDERER'] = 'cairo'
+
         app.ged.register_event_handler(
             'db-migration', 0, self._on_db_migration)
 


=====================================
gajim/gtk/exception.py
=====================================
@@ -263,5 +263,9 @@ def _before_send(self, event: dict[str, Any], hint: Any) -> 
dict[str, Any]:
 
 
 def init() -> None:
-    if sys.platform == 'win32' or not sys.stderr.isatty():
+    # TODO GTK4
+    # Change back once port is done
+    # if sys.platform == 'win32' or not sys.stderr.isatty():
+    #     sys.excepthook = _hook
+    if not sys.stderr.isatty():
         sys.excepthook = _hook



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/edfb16ded8f5ac84b346ccd81c6303c23359c19e...9f858b600af3fb0d53d50a23c10aae2e0cc0047c

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/edfb16ded8f5ac84b346ccd81c6303c23359c19e...9f858b600af3fb0d53d50a23c10aae2e0cc0047c
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- commits@gajim.org
To unsubscribe send an email to commits-le...@gajim.org

Reply via email to