Commit 698fabcd authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

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
parent 21f6b7f9
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
......
......@@ -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",
......
......@@ -32,6 +32,7 @@
#include "core/gimpdrawable.h"
#include "core/gimpimage.h"
#include "core/gimpimagemap.h"
#include "widgets/gimppropwidgets.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment