[gegl] gegl:gegl use gegl_node_set for error
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl:gegl use gegl_node_set for error
- Date: Sat, 16 Apr 2016 00:52:26 +0000 (UTC)
commit 43e8aa65567fda3f4940812a9acd5e9a155f963b
Author: Øyvind Kolås <pippin gimp org>
Date: Sat Apr 16 01:50:19 2016 +0100
gegl:gegl use gegl_node_set for error
operations/common/gegl.c | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/operations/common/gegl.c b/operations/common/gegl.c
index 3a7a36a..4532d5e 100644
--- a/operations/common/gegl.c
+++ b/operations/common/gegl.c
@@ -46,13 +46,6 @@ attach (GeglOperation *operation)
output = gegl_node_get_output_proxy (gegl, "output");
gegl_node_link_many (input, output, NULL);
- /*
- gegl_operation_meta_redirect (operation, "scale", multiply, "value");
- gegl_operation_meta_redirect (operation, "std-dev", blur, "std-dev-x");
- gegl_operation_meta_redirect (operation, "std-dev", blur, "std-dev-y");
-
- gegl_operation_meta_watch_nodes (operation, add, multiply, subtract, blur, NULL);
- */
}
#include <stdio.h>
@@ -84,19 +77,12 @@ prepare (GeglOperation *operation)
if (error)
{
- g_object_set (operation, "error", error->message, NULL);
+ gegl_node_set (gegl, "error", error->message, NULL);
g_error_free (error);
error = NULL;
}
else
g_object_set (operation, "error", "", NULL);
- /*
- gegl_operation_meta_redirect (operation, "scale", multiply, "value");
- gegl_operation_meta_redirect (operation, "std-dev", blur, "std-dev-x");
- gegl_operation_meta_redirect (operation, "std-dev", blur, "std-dev-y");
-
- gegl_operation_meta_watch_nodes (operation, add, multiply, subtract, blur, NULL);
- */
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]