[cogl/lionel/introspection-next: 11/45] color: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 11/45] color: add introspection support
- Date: Fri, 15 Nov 2013 15:42:02 +0000 (UTC)
commit 446bab7e83a3012b8f6093ac2b242a612be15248
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]