From 6a0f47f8c323f5ff77c85cbaa8a751f9461b80af Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 2 Sep 2013 16:02:42 +0100 Subject: Registers gtypes for all public objects and structs This adds much more comprehensive support for gobject-introspection based bindings by registering all objects as fundamental types that inherit from CoglObject, and all structs as boxed types. Co-Author: Robert Bragg --- cogl/cogl-texture-2d.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cogl/cogl-texture-2d.c') diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c index 28f32e09..e70d6ca4 100644 --- a/cogl/cogl-texture-2d.c +++ b/cogl/cogl-texture-2d.c @@ -50,6 +50,7 @@ #ifdef COGL_HAS_EGL_SUPPORT #include "cogl-winsys-egl-private.h" #endif +#include "cogl-gtype-private.h" #include #include @@ -61,6 +62,8 @@ static void _cogl_texture_2d_free (CoglTexture2D *tex_2d); COGL_TEXTURE_DEFINE (Texture2D, texture_2d); +COGL_GTYPE_DEFINE_CLASS (Texture2D, texture_2d, + COGL_GTYPE_IMPLEMENT_INTERFACE (texture)); static const CoglTextureVtable cogl_texture_2d_vtable; -- cgit v1.2.1