[gegl] Don't use gegl_operation_context_set_property
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Don't use gegl_operation_context_set_property
- Date: Wed, 20 Nov 2013 01:17:07 +0000 (UTC)
commit 19869f7aece40b83431cf1ba90b2a8c2e56f8e69
Author: Daniel Sabo <DanielSabo gmail com>
Date: Tue Nov 19 16:21:48 2013 -0800
Don't use gegl_operation_context_set_property
gegl/process/gegl-processor.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gegl/process/gegl-processor.c b/gegl/process/gegl-processor.c
index 1545590..9bca0ee 100644
--- a/gegl/process/gegl-processor.c
+++ b/gegl/process/gegl-processor.c
@@ -362,7 +362,6 @@ gegl_processor_set_rectangle (GeglProcessor *processor,
gegl_operation_sink_needs_full (processor->node->operation))
{
GeglCache *cache;
- GValue value = { 0, };
cache = gegl_node_get_cache (processor->input);
@@ -371,11 +370,7 @@ gegl_processor_set_rectangle (GeglProcessor *processor,
processor->context = gegl_operation_context_new (processor->node->operation);
}
- g_value_init (&value, GEGL_TYPE_BUFFER);
- g_value_set_object (&value, cache);
- gegl_operation_context_set_property (processor->context, "input", &value);
- g_value_unset (&value);
-
+ gegl_operation_context_set_object (processor->context, "input", G_OBJECT (cache));
gegl_operation_context_set_result_rect (processor->context,
&processor->rectangle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]