[gegl] Move gegl_buffer_introspectable_new
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Move gegl_buffer_introspectable_new
- Date: Fri, 7 Jun 2013 05:50:57 +0000 (UTC)
commit 448a9113d5cbca41c1417c5bd5dc361fb595a066
Author: Daniel Sabo <DanielSabo gmail com>
Date: Wed Jun 5 21:34:14 2013 -0700
Move gegl_buffer_introspectable_new
gegl/buffer/gegl-buffer.c | 24 ------------------------
gegl/buffer/gegl-buffer.h | 18 ------------------
gegl/gegl-introspection-support.c | 24 ++++++++++++++++++++++++
gegl/gegl-introspection-support.h | 24 ++++++++++++++++++++++++
4 files changed, 48 insertions(+), 42 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer.c b/gegl/buffer/gegl-buffer.c
index 699f076..e0c08e1 100644
--- a/gegl/buffer/gegl-buffer.c
+++ b/gegl/buffer/gegl-buffer.c
@@ -1032,30 +1032,6 @@ gegl_buffer_new_ram (const GeglRectangle *extent,
}
GeglBuffer *
-gegl_buffer_introspectable_new (const char *format_name,
- gint x,
- gint y,
- gint width,
- gint height)
-{
- const Babl *format = NULL;
-
- if (format_name)
- format = babl_format (format_name);
-
- if (!format)
- format = babl_format ("RGBA float");
-
- return g_object_new (GEGL_TYPE_BUFFER,
- "x", x,
- "y", y,
- "width", width,
- "height", height,
- "format", format,
- NULL);
-}
-
-GeglBuffer *
gegl_buffer_new (const GeglRectangle *extent,
const Babl *format)
{
diff --git a/gegl/buffer/gegl-buffer.h b/gegl/buffer/gegl-buffer.h
index f952753..ad233a0 100644
--- a/gegl/buffer/gegl-buffer.h
+++ b/gegl/buffer/gegl-buffer.h
@@ -65,24 +65,6 @@ GeglBuffer * gegl_buffer_new (const GeglRectangle *extent,
const Babl *format);
/**
- * gegl_buffer_introspectable_new:
- * @format_name: The Babl format name for this buffer, e.g. "RGBA float"
- * @x: x origin of the buffer's extent
- * @y: y origin of the buffer's extent
- * @width: width of the buffer's extent
- * @height: height of the buffer's extent
- *
- * Create a new GeglBuffer with the given format and dimensions.
- *
- * Rename to: gegl_buffer_new
- */
-GeglBuffer * gegl_buffer_introspectable_new (const char *format_name,
- gint x,
- gint y,
- gint width,
- gint height);
-
-/**
* gegl_buffer_new_for_backend:
* @extent: the geometry of the buffer (origin, width and height) a
* GeglRectangle.
diff --git a/gegl/gegl-introspection-support.c b/gegl/gegl-introspection-support.c
index 1e5851d..77a0125 100644
--- a/gegl/gegl-introspection-support.c
+++ b/gegl/gegl-introspection-support.c
@@ -44,3 +44,27 @@ gegl_node_introspectable_get_property (GeglNode *node,
return result;
}
+
+GeglBuffer *
+gegl_buffer_introspectable_new (const char *format_name,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
+{
+ const Babl *format = NULL;
+
+ if (format_name)
+ format = babl_format (format_name);
+
+ if (!format)
+ format = babl_format ("RGBA float");
+
+ return g_object_new (GEGL_TYPE_BUFFER,
+ "x", x,
+ "y", y,
+ "width", width,
+ "height", height,
+ "format", format,
+ NULL);
+}
diff --git a/gegl/gegl-introspection-support.h b/gegl/gegl-introspection-support.h
index 0860642..9dba300 100644
--- a/gegl/gegl-introspection-support.h
+++ b/gegl/gegl-introspection-support.h
@@ -22,6 +22,9 @@
* C API and should not be used outside of this file.
*/
+#ifndef __GEGL_INTROSPECTION_SUPPORT_H__
+#define __GEGL_INTROSPECTION_SUPPORT_H__
+
#include <glib-object.h>
#include <gegl-types.h>
@@ -38,3 +41,24 @@
GValue * gegl_node_introspectable_get_property (GeglNode *node,
const gchar *property_name);
+
+/**
+ * gegl_buffer_introspectable_new:
+ * @format_name: The Babl format name for this buffer, e.g. "RGBA float"
+ * @x: x origin of the buffer's extent
+ * @y: y origin of the buffer's extent
+ * @width: width of the buffer's extent
+ * @height: height of the buffer's extent
+ *
+ * Create a new GeglBuffer with the given format and dimensions.
+ *
+ * Rename to: gegl_buffer_new
+ */
+GeglBuffer * gegl_buffer_introspectable_new (const char *format_name,
+ gint x,
+ gint y,
+ gint width,
+ gint height);
+
+#endif /* __GEGL_INTROSPECTION_SUPPORT_H__ */
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]