-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#4317 move GDKX11Window to its own module
- Loading branch information
Showing
5 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,3 @@ | |
# Copyright (C) 2013-2019 Antoine Martin <[email protected]> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
|
||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This file is part of Xpra. | ||
# Copyright (C) 2013-2019 Antoine Martin <[email protected]> | ||
# 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 | ||
|
||
GdkX11 = gi_import("GdkX11", "3.0") | ||
|
||
|
||
def GDKX11Window(*args, **kwargs) -> GdkX11.X11Window: | ||
# pylint: disable=import-outside-toplevel | ||
from xpra.gtk.window import new_GDKWindow | ||
return new_GDKWindow(GdkX11.X11Window, *args, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters