clutter/main: Remove checking windowing system
Last user in gnome-shell removed with https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1358. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1364
This commit is contained in:
parent
c2a155f767
commit
3566fa7bb0
@ -69,13 +69,6 @@
|
|||||||
#include "clutter-stage-private.h"
|
#include "clutter-stage-private.h"
|
||||||
#include "clutter-backend-private.h"
|
#include "clutter-backend-private.h"
|
||||||
|
|
||||||
#ifdef CLUTTER_WINDOWING_X11
|
|
||||||
#include "x11/clutter-backend-x11.h"
|
|
||||||
#endif
|
|
||||||
#ifdef CLUTTER_WINDOWING_EGL
|
|
||||||
#include "egl/clutter-backend-eglnative.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <cogl/cogl.h>
|
#include <cogl/cogl.h>
|
||||||
#include <cogl-pango/cogl-pango.h>
|
#include <cogl-pango/cogl-pango.h>
|
||||||
|
|
||||||
@ -2443,58 +2436,6 @@ _clutter_context_get_pick_mode (void)
|
|||||||
return context->pick_mode;
|
return context->pick_mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* clutter_check_windowing_backend:
|
|
||||||
* @backend_type: the name of the backend to check
|
|
||||||
*
|
|
||||||
* Checks the run-time name of the Clutter windowing system backend, using
|
|
||||||
* the symbolic macros like %CLUTTER_WINDOWING_X11.
|
|
||||||
*
|
|
||||||
* This function should be used in conjuction with the compile-time macros
|
|
||||||
* inside applications and libraries that are using the platform-specific
|
|
||||||
* windowing system API, to ensure that they are running on the correct
|
|
||||||
* windowing system; for instance:
|
|
||||||
*
|
|
||||||
* |[
|
|
||||||
* #ifdef CLUTTER_WINDOWING_X11
|
|
||||||
* if (clutter_check_windowing_backend (CLUTTER_WINDOWING_X11))
|
|
||||||
* {
|
|
||||||
* // it is safe to use the clutter_x11_* API
|
|
||||||
* }
|
|
||||||
* else
|
|
||||||
* #endif
|
|
||||||
* g_error ("Unknown Clutter backend.");
|
|
||||||
* ]|
|
|
||||||
*
|
|
||||||
* Return value: %TRUE if the current Clutter windowing system backend is
|
|
||||||
* the one checked, and %FALSE otherwise
|
|
||||||
*
|
|
||||||
* Since: 1.10
|
|
||||||
*/
|
|
||||||
gboolean
|
|
||||||
clutter_check_windowing_backend (const char *backend_type)
|
|
||||||
{
|
|
||||||
ClutterMainContext *context = _clutter_context_get_default ();
|
|
||||||
|
|
||||||
g_return_val_if_fail (backend_type != NULL, FALSE);
|
|
||||||
|
|
||||||
backend_type = g_intern_string (backend_type);
|
|
||||||
|
|
||||||
#ifdef CLUTTER_WINDOWING_EGL
|
|
||||||
if (backend_type == I_(CLUTTER_WINDOWING_EGL) &&
|
|
||||||
CLUTTER_IS_BACKEND_EGL_NATIVE (context->backend))
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
#ifdef CLUTTER_WINDOWING_X11
|
|
||||||
if (backend_type == I_(CLUTTER_WINDOWING_X11) &&
|
|
||||||
CLUTTER_IS_BACKEND_X11 (context->backend))
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clutter_add_debug_flags: (skip)
|
* clutter_add_debug_flags: (skip)
|
||||||
*
|
*
|
||||||
|
@ -194,9 +194,6 @@ ClutterTextDirection clutter_get_default_text_direction (void);
|
|||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
guint clutter_get_default_frame_rate (void);
|
guint clutter_get_default_frame_rate (void);
|
||||||
|
|
||||||
CLUTTER_EXPORT
|
|
||||||
gboolean clutter_check_windowing_backend (const char *backend_type);
|
|
||||||
|
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
void clutter_add_debug_flags (ClutterDebugFlag debug_flags,
|
void clutter_add_debug_flags (ClutterDebugFlag debug_flags,
|
||||||
ClutterDrawDebugFlag draw_flags,
|
ClutterDrawDebugFlag draw_flags,
|
||||||
|
Loading…
Reference in New Issue
Block a user