Coverage for /home/antoine/projects/xpra-git/dist/python3/lib64/python/xpra/client/gtk3/__init__.py : 100%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# This file is part of Xpra.
2# Copyright (C) 2013-2019 Antoine Martin <antoine@xpra.org>
3# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
4# later version. See the file COPYING for details.
6import gi
8from xpra.os_util import is_X11
10gi.require_version('Gdk', '3.0')
11gi.require_version('Gtk', '3.0')
13if is_X11():
14 try:
15 from xpra.x11.gtk3.gdk_display_source import init_gdk_display_source
16 init_gdk_display_source()
17 except ImportError: # pragma: no cover
18 from xpra.log import Logger
19 log = Logger("gtk", "client")
20 log.warn("Warning: cannot import gtk3 x11 display source", exc_info=True)