[cogl/lionel/introspection-next: 11/42] color: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 11/42] color: add introspection support
- Date: Tue, 10 Dec 2013 21:51:12 +0000 (UTC)
commit 97062a7dfb3be4398646aaa4fc813f835d9bfe90
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]