[gegl] gegl: Add gegl_operation_context_set_object()
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl] gegl: Add gegl_operation_context_set_object()
- Date: Sun, 21 Jun 2009 12:54:23 -0400 (EDT)
commit 77bcd97fd2d2773a26de81ea584a8b0c7f9956b6
Author: Martin Nordholts <martinn src gnome org>
Date: Sun Jun 21 17:57:53 2009 +0200
gegl: Add gegl_operation_context_set_object()
gegl/operation/gegl-operation-context.c | 10 ++++++++++
gegl/operation/gegl-operation-context.h | 3 +++
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gegl/operation/gegl-operation-context.c b/gegl/operation/gegl-operation-context.c
index b9f8f5a..a470299 100644
--- a/gegl/operation/gegl-operation-context.c
+++ b/gegl/operation/gegl-operation-context.c
@@ -237,6 +237,16 @@ void gegl_operation_context_destroy (GeglOperationContext *self)
g_slice_free (GeglOperationContext, self);
}
+void
+gegl_operation_context_set_object (GeglOperationContext *context,
+ const gchar *padname,
+ GObject *data)
+{
+ /* Make it simple, just add an extra ref and then take the object */
+ if (data)
+ g_object_ref (data);
+ gegl_operation_context_take_object (context, padname, data);
+}
void
gegl_operation_context_take_object (GeglOperationContext *context,
diff --git a/gegl/operation/gegl-operation-context.h b/gegl/operation/gegl-operation-context.h
index b94d671..55f21d0 100644
--- a/gegl/operation/gegl-operation-context.h
+++ b/gegl/operation/gegl-operation-context.h
@@ -57,6 +57,9 @@ GeglBuffer *gegl_operation_context_get_source (GeglOperationContext *se
const gchar *padname);
GObject *gegl_operation_context_get_object (GeglOperationContext *context,
const gchar *padname);
+void gegl_operation_context_set_object (GeglOperationContext *context,
+ const gchar *padname,
+ GObject *data);
void gegl_operation_context_take_object (GeglOperationContext *context,
const gchar *padname,
GObject *data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]