[gegl] gegl: Use more generic proxynop node naming
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl] gegl: Use more generic proxynop node naming
- Date: Sun, 21 Jun 2009 16:18:32 -0400 (EDT)
commit 563c539f2ac537360f90377fbbee8590f3e11bdc
Author: Martin Nordholts <martinn src gnome org>
Date: Sun Jun 21 20:49:05 2009 +0200
gegl: Use more generic proxynop node naming
Use more generic proxynop node naming so that we get the name
"proxynop-aux" for such proxynop nodes.
gegl/graph/gegl-node.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/gegl/graph/gegl-node.c b/gegl/graph/gegl-node.c
index 6829390..e15356f 100644
--- a/gegl/graph/gegl-node.c
+++ b/gegl/graph/gegl-node.c
@@ -1994,8 +1994,15 @@ gegl_node_get_pad_proxy (GeglNode *graph,
pad = gegl_node_get_pad (node, name);
if (!pad)
{
- GeglNode *nop = g_object_new (GEGL_TYPE_NODE, "operation", "gegl:nop", "name", is_graph_input ? "proxynop-input" : "proxynop-output", NULL);
- GeglPad *nop_pad = gegl_node_get_pad (nop, is_graph_input ? "input" : "output");
+ GeglNode *nop = NULL;
+ GeglPad *nop_pad = NULL;
+ gchar *nop_name = NULL;
+
+ nop_name = g_strconcat ("proxynop-", name, NULL);
+ nop = g_object_new (GEGL_TYPE_NODE, "operation", "gegl:nop", "name", nop_name, NULL);
+ nop_pad = gegl_node_get_pad (nop, is_graph_input ? "input" : "output");
+ g_free (nop_name);
+
gegl_node_add_child (graph, nop);
g_object_unref (nop); /* our reference is made by the
gegl_node_add_child call */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]