Skip to content

Commit

Permalink
#4317 don't import Gtk / Gdk this early
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 5, 2024
1 parent 3247d07 commit 08d67fe
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions xpra/x11/gtk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.

from xpra.os_util import gi_import

gi_import("Gdk", "3.0")
gi_import("Gtk", "3.0")
GdkX11 = gi_import("GdkX11", "3.0")


def GDKX11Window(*args, **kwargs) -> GdkX11.X11Window:
def GDKX11Window(*args, **kwargs):
from xpra.os_util import gi_import
GdkX11 = gi_import("GdkX11", "3.0")
# pylint: disable=import-outside-toplevel
from xpra.gtk.window import new_GDKWindow
return new_GDKWindow(GdkX11.X11Window, *args, **kwargs)

0 comments on commit 08d67fe

Please sign in to comment.