From: Benjamin Otte Date: Tue, 25 Apr 2023 18:04:13 +0000 (+0200) Subject: gdk: Move GdkGLAPI enum into gdkenums.h X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~366^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5b376cedcff5e6d30e9d1db93563d47d13b19aac;p=gtk4.git gdk: Move GdkGLAPI enum into gdkenums.h --- diff --git a/gdk/gdkenums.h b/gdk/gdkenums.h index 783bf8906f..9fc4a640b1 100644 --- a/gdk/gdkenums.h +++ b/gdk/gdkenums.h @@ -32,6 +32,20 @@ G_BEGIN_DECLS +/** + * GdkGLAPI: + * @GDK_GL_API_GL: The OpenGL API + * @GDK_GL_API_GLES: The OpenGL ES API + * + * The list of the different APIs that GdkGLContext can potentially support. + * + * Since: 4.6 + */ +typedef enum { /*< underscore_name=GDK_GL_API >*/ + GDK_GL_API_GL = 1 << 0, + GDK_GL_API_GLES = 1 << 1 +} GdkGLAPI; + /* Currently, these are the same values numerically as in the * X protocol. If you change that, gdksurface-x11.c/gdk_surface_set_geometry_hints() * will need fixing. diff --git a/gdk/gdkglcontext.h b/gdk/gdkglcontext.h index 5d4b614069..0f5abe8544 100644 --- a/gdk/gdkglcontext.h +++ b/gdk/gdkglcontext.h @@ -24,25 +24,12 @@ #error "Only can be included directly." #endif -#include +#include #include +#include G_BEGIN_DECLS -/** - * GdkGLAPI: - * @GDK_GL_API_GL: The OpenGL API - * @GDK_GL_API_GLES: The OpenGL ES API - * - * The list of the different APIs that GdkGLContext can potentially support. - * - * Since: 4.6 - */ -typedef enum { /*< underscore_name=GDK_GL_API >*/ - GDK_GL_API_GL = 1 << 0, - GDK_GL_API_GLES = 1 << 1 -} GdkGLAPI; - #define GDK_TYPE_GL_CONTEXT (gdk_gl_context_get_type ()) #define GDK_GL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_GL_CONTEXT, GdkGLContext)) #define GDK_IS_GL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_GL_CONTEXT))