use gegl_node_get_pad() instead of gegl_node_find_property() to find out

2008-02-05  Michael Natterer  <mitch@gimp.org>

	* 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
This commit is contained in:
Michael Natterer 2008-02-05 17:53:37 +00:00 committed by Michael Natterer
parent 21f6b7f905
commit 698fabcdef
3 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2008-02-05 Michael Natterer <mitch@gimp.org>
* 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 <sven@gimp.org>
* themes/Default/images/stock-gegl-24.png

View File

@ -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",

View File

@ -32,6 +32,7 @@
#include "core/gimpdrawable.h"
#include "core/gimpimage.h"
#include "core/gimpimagemap.h"
#include "widgets/gimppropwidgets.h"