From 698fabcdefabdc074d05ce1d9380e677e886fae1 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 5 Feb 2008 17:53:37 +0000 Subject: [PATCH] use gegl_node_get_pad() instead of gegl_node_find_property() to find out 2008-02-05 Michael Natterer * app/core/gimpimagemap.c (gimp_image_map_apply): use gegl_node_get_pad() instead of gegl_node_find_property() to find out whether the node has an "input" pad. * app/tools/gimpgegltool.c: #include "core/gimpimagemap.h" svn path=/trunk/; revision=24812 --- ChangeLog | 8 ++++++++ app/core/gimpimagemap.c | 9 ++++++++- app/tools/gimpgegltool.c | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6e2121b765..0d002faa15 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-02-05 Michael Natterer + + * app/core/gimpimagemap.c (gimp_image_map_apply): use + gegl_node_get_pad() instead of gegl_node_find_property() to find + out whether the node has an "input" pad. + + * app/tools/gimpgegltool.c: #include "core/gimpimagemap.h" + 2008-02-05 Sven Neumann * themes/Default/images/stock-gegl-24.png diff --git a/app/core/gimpimagemap.c b/app/core/gimpimagemap.c index dc9224446a..631a67cc66 100644 --- a/app/core/gimpimagemap.c +++ b/app/core/gimpimagemap.c @@ -41,6 +41,11 @@ #endif GeglNode * gegl_node_add_child (GeglNode *self, GeglNode *child); +#ifdef __GNUC__ +#warning FIXME: gegl_node_get_pad() or something similar needs to be public +#endif +gpointer gegl_node_get_pad (GeglNode *self, + const gchar *pad_name); enum { @@ -429,8 +434,10 @@ gimp_image_map_apply (GimpImageMap *image_map, { image_map->gegl = gegl_node_new (); - if (gegl_node_find_property (image_map->operation, "input")) + if (gegl_node_get_pad (image_map->operation, "input")) { + g_printerr ("%s: found input property\n", G_STRFUNC); + image_map->input = gegl_node_new_child (image_map->gegl, "operation", "gimp-tilemanager-source", diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c index d532f7fff4..c4fc8fa445 100644 --- a/app/tools/gimpgegltool.c +++ b/app/tools/gimpgegltool.c @@ -32,6 +32,7 @@ #include "core/gimpdrawable.h" #include "core/gimpimage.h" +#include "core/gimpimagemap.h" #include "widgets/gimppropwidgets.h"