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


Commits:
306a316f by wurstsalat at 2024-11-03T10:51:18+01:00
refactor: Main: Load GdkX11 on X11 displays only

This otherwise crashes on Windows

- - - - -


1 changed file:

- gajim/gtk/main.py


Changes:

=====================================
gajim/gtk/main.py
=====================================
@@ -14,7 +14,6 @@
 from pathlib import Path
 
 from gi.repository import Gdk
-from gi.repository import GdkX11
 from gi.repository import Gio
 from gi.repository import GLib
 from gi.repository import Gtk
@@ -70,6 +69,9 @@
 if TYPE_CHECKING:
     from gajim.gtk.control import ChatControl
 
+if app.is_display(Display.X11):
+    from gi.repository import GdkX11
+
 log = logging.getLogger('gajim.gtk.main')
 
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/306a316f2b825e9baaff99ba5bc84fc7bb60ee3c

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/306a316f2b825e9baaff99ba5bc84fc7bb60ee3c
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