[cogl/lionel/introspection-next: 12/44] color: add introspection support



commit 49f99990d97547325e23a125386c31da1c8eaca2
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Tue Sep 3 13:44:16 2013 +0100

    color: add introspection support

 cogl/cogl-color.c |    3 +++
 cogl/cogl-color.h |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-color.c b/cogl/cogl-color.c
index 7d5db0f..5a6af18 100644
--- a/cogl/cogl-color.c
+++ b/cogl/cogl-color.c
@@ -31,6 +31,9 @@
 #include "cogl-color.h"
 #include "cogl-fixed.h"
 #include "cogl-color-private.h"
+#include "cogl-gtype-private.h"
+
+COGL_GTYPE_DEFINE_BOXED ("Color", color, cogl_color_copy, cogl_color_free);
 
 CoglColor *
 cogl_color_new (void)
diff --git a/cogl/cogl-color.h b/cogl/cogl-color.h
index 2896505..e881d97 100644
--- a/cogl/cogl-color.h
+++ b/cogl/cogl-color.h
@@ -43,6 +43,8 @@
 
 COGL_BEGIN_DECLS
 
+COGL_GTYPE_DECLARE_TYPE (color);
+
 /**
  * cogl_color_new:
  *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]