Coverage for /home/antoine/projects/xpra-git/dist/python3/lib64/python/xpra/client/gl/gtk3/nativegl_client_window.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) 2017 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.
6from gi.repository import GObject #@UnresolvedImport @UnusedImport
8from xpra.client.gl.gtk3.gl_client_window import GLClientWindowBase
9from xpra.client.gl.gtk3.gl_drawing_area import GLDrawingArea, GLContext
11def check_support(force_enable=False):
12 import warnings
13 with warnings.catch_warnings():
14 warnings.filterwarnings("ignore", message=".*g_object_get_qdata:")
15 warnings.filterwarnings("ignore", message=".*g_object_set_qdata_full:")
16 warnings.filterwarnings("ignore", message=".*g_object_unref:")
17 return GLContext().check_support(force_enable) #pylint: disable=not-callable
20class GLClientWindow(GLClientWindowBase):
21 __gsignals__ = GLClientWindowBase.__common_gsignals__
23 def get_backing_class(self):
24 return GLDrawingArea
26GObject.type_register(GLClientWindow)