[cogl/lionel/introspection-next: 13/42] onscreen: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 13/42] onscreen: add introspection support
- Date: Tue, 10 Dec 2013 21:51:22 +0000 (UTC)
commit 0f48ec58193a183827c8619f79cde1ab2d87fcf7
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 cffbe33..5bce14c 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]