[mutter/wip/carlosg/input-in-backends: 240/241] clutter: Drop functions to get XVisualInfo
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/input-in-backends: 240/241] clutter: Drop functions to get XVisualInfo
- Date: Wed, 12 Jun 2019 17:52:29 +0000 (UTC)
commit 8826af40129268a3cc5a19a79edb6a70f4550727
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Mar 29 21:25:45 2019 +0100
clutter: Drop functions to get XVisualInfo
We don't need nor use visuals anymore.
clutter/clutter/x11/clutter-backend-x11.c | 33 -------------------------------
clutter/clutter/x11/clutter-backend-x11.h | 3 ---
clutter/clutter/x11/clutter-x11.h | 2 --
3 files changed, 38 deletions(-)
---
diff --git a/clutter/clutter/x11/clutter-backend-x11.c b/clutter/clutter/x11/clutter-backend-x11.c
index 5054f3861..7317eac04 100644
--- a/clutter/clutter/x11/clutter-backend-x11.c
+++ b/clutter/clutter/x11/clutter-backend-x11.c
@@ -1080,36 +1080,3 @@ clutter_x11_get_use_stereo_stage (void)
return clutter_enable_stereo;
}
-XVisualInfo *
-_clutter_backend_x11_get_visual_info (ClutterBackendX11 *backend_x11)
-{
- return cogl_clutter_winsys_xlib_get_visual_info ();
-}
-
-/**
- * clutter_x11_get_visual_info: (skip)
- *
- * Retrieves the `XVisualInfo` used by the Clutter X11 backend.
- *
- * Return value: (transfer full): a `XVisualInfo`, or `None`.
- * The returned value should be freed using `XFree()` when done
- *
- * Since: 1.2
- */
-XVisualInfo *
-clutter_x11_get_visual_info (void)
-{
- ClutterBackendX11 *backend_x11;
- ClutterBackend *backend;
-
- backend = clutter_get_default_backend ();
- if (!CLUTTER_IS_BACKEND_X11 (backend))
- {
- g_critical ("The Clutter backend is not a X11 backend.");
- return NULL;
- }
-
- backend_x11 = CLUTTER_BACKEND_X11 (backend);
-
- return _clutter_backend_x11_get_visual_info (backend_x11);
-}
diff --git a/clutter/clutter/x11/clutter-backend-x11.h b/clutter/clutter/x11/clutter-backend-x11.h
index 0b2272e8e..46ede53f2 100644
--- a/clutter/clutter/x11/clutter-backend-x11.h
+++ b/clutter/clutter/x11/clutter-backend-x11.h
@@ -106,9 +106,6 @@ GType clutter_backend_x11_get_type (void) G_GNUC_CONST;
ClutterBackend *clutter_backend_x11_new (void);
/* Private to glx/eglx backends */
-CLUTTER_EXPORT
-XVisualInfo * _clutter_backend_x11_get_visual_info (ClutterBackendX11 *backend_x11);
-
void _clutter_x11_select_events (Window xwin);
G_END_DECLS
diff --git a/clutter/clutter/x11/clutter-x11.h b/clutter/clutter/x11/clutter-x11.h
index a7de5044b..bf58e6f56 100644
--- a/clutter/clutter/x11/clutter-x11.h
+++ b/clutter/clutter/x11/clutter-x11.h
@@ -100,8 +100,6 @@ int clutter_x11_get_default_screen (void);
CLUTTER_EXPORT
Window clutter_x11_get_root_window (void);
CLUTTER_EXPORT
-XVisualInfo *clutter_x11_get_visual_info (void);
-CLUTTER_EXPORT
void clutter_x11_set_display (Display * xdpy);
CLUTTER_EXPORT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]