[cogl/lionel/introspection-next: 14/44] onscreen: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 14/44] onscreen: add introspection support
- Date: Sun, 9 Feb 2014 21:17:03 +0000 (UTC)
commit ba6b73b27caf977d6179b650d983039cd012b58c
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Tue Sep 3 13:45:00 2013 +0100
onscreen: add introspection support
cogl/cogl-onscreen.c | 3 +++
cogl/cogl-onscreen.h | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-onscreen.c b/cogl/cogl-onscreen.c
index 637cb30..d1f88b1 100644
--- a/cogl/cogl-onscreen.c
+++ b/cogl/cogl-onscreen.c
@@ -35,12 +35,15 @@
#include "cogl1-context.h"
#include "cogl-closure-list-private.h"
#include "cogl-poll-private.h"
+#include "cogl-gtype-private.h"
static void _cogl_onscreen_free (CoglOnscreen *onscreen);
COGL_OBJECT_DEFINE_WITH_CODE (Onscreen, onscreen,
_cogl_onscreen_class.virt_unref =
_cogl_framebuffer_unref);
+COGL_GTYPE_DEFINE_CLASS (Onscreen, onscreen,
+ COGL_GTYPE_IMPLEMENT_INTERFACE (framebuffer));
static void
_cogl_onscreen_init_from_template (CoglOnscreen *onscreen,
diff --git a/cogl/cogl-onscreen.h b/cogl/cogl-onscreen.h
index 5f616e7..e83999e 100644
--- a/cogl/cogl-onscreen.h
+++ b/cogl/cogl-onscreen.h
@@ -42,6 +42,8 @@ COGL_BEGIN_DECLS
typedef struct _CoglOnscreen CoglOnscreen;
#define COGL_ONSCREEN(X) ((CoglOnscreen *)(X))
+COGL_GTYPE_DECLARE_TYPE (onscreen);
+
/**
* cogl_onscreen_new: (constructor)
* @context: A #CoglContext
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]