diff --git a/clutter/glx/clutter-glx-texture-pixmap.c b/clutter/glx/clutter-glx-texture-pixmap.c index e3ef4db94..662764d11 100644 --- a/clutter/glx/clutter-glx-texture-pixmap.c +++ b/clutter/glx/clutter-glx-texture-pixmap.c @@ -43,23 +43,21 @@ * may use the extension if it is possible. */ - - -#ifdef HAVE_CONFIG_H #include "config.h" -#endif + +#include "clutter-glx-texture-pixmap.h" #include -#include "../x11/clutter-x11-texture-pixmap.h" -#include "clutter-glx-texture-pixmap.h" +#include + +#include "x11/clutter-x11-texture-pixmap.h" #include "cogl/winsys/cogl-texture-pixmap-x11.h" G_DEFINE_TYPE (ClutterGLXTexturePixmap, \ clutter_glx_texture_pixmap, \ CLUTTER_X11_TYPE_TEXTURE_PIXMAP); - static void clutter_glx_texture_pixmap_init (ClutterGLXTexturePixmap *self) { @@ -83,6 +81,9 @@ clutter_glx_texture_pixmap_class_init (ClutterGLXTexturePixmapClass *klass) * GLX_EXT_texture_from_pixmap OpenGL extension or falling back to the * slower software mechanism. * + * Deprecated: 1.6: Use cogl_texture_pixmap_x11_is_using_tfp_extension() + * on the texture handle instead. + * * Since: 0.8 */ gboolean @@ -107,6 +108,8 @@ clutter_glx_texture_pixmap_using_extension (ClutterGLXTexturePixmap *texture) * Return value: A new #ClutterGLXTexturePixmap bound to the given X Pixmap * * Since: 0.8 + * + * Deprecated: 1.6: Use clutter_x11_texture_pixmap_new_with_pixmap() instead */ ClutterActor * clutter_glx_texture_pixmap_new_with_pixmap (Pixmap pixmap) @@ -125,7 +128,9 @@ clutter_glx_texture_pixmap_new_with_pixmap (Pixmap pixmap) * Return value: A new #ClutterGLXTexturePixmap bound to the given X window * * Since: 0.8 - **/ + * + * Deprecated: 1.6: Use clutter_x11_texture_pixmap_new_with_window() instead + */ ClutterActor * clutter_glx_texture_pixmap_new_with_window (Window window) { @@ -142,6 +147,8 @@ clutter_glx_texture_pixmap_new_with_window (Window window) * Return value: A new #ClutterGLXTexturePixmap * * Since: 0.8 + * + * Deprecated: 1.6: Use clutter_x11_texture_pixmap_new() instead */ ClutterActor * clutter_glx_texture_pixmap_new (void) diff --git a/clutter/glx/clutter-glx-texture-pixmap.h b/clutter/glx/clutter-glx-texture-pixmap.h index 95275d674..c99ffae19 100644 --- a/clutter/glx/clutter-glx-texture-pixmap.h +++ b/clutter/glx/clutter-glx-texture-pixmap.h @@ -26,11 +26,9 @@ #ifndef __CLUTTER_GLX_TEXTURE_PIXMAP_H__ #define __CLUTTER_GLX_TEXTURE_PIXMAP_H__ -#include -#include #include -#include +#if !defined(CLUTTER_COMPILATION) || defined(CLUTTER_DISABLE_DEPRECATED) G_BEGIN_DECLS @@ -51,6 +49,8 @@ typedef struct _ClutterGLXTexturePixmapPrivate ClutterGLXTexturePixmapPrivate; * The #ClutterGLXTexturePixmapClass structure contains only private data * * Since: 0.8 + * + * Deprecated: 1.6: Use #ClutterX11TexturePixmapClass instead */ struct _ClutterGLXTexturePixmapClass { @@ -64,6 +64,8 @@ struct _ClutterGLXTexturePixmapClass * The #ClutterGLXTexturePixmap structure contains only private data * * Since: 0.8 + * + * Deprecated: 1.6: Use #ClutterX11TexturePixmap instead */ struct _ClutterGLXTexturePixmap { @@ -85,4 +87,6 @@ gboolean clutter_glx_texture_pixmap_using_extension (ClutterGLXTexturePixm G_END_DECLS -#endif +#endif /* !CLUTTER_DISABLE_DEPRECATED || CLUTTER_COMPILATION */ + +#endif /* __CLUTTER_GLX_TEXTURE_PIXMAP_H__ */