gimp r24812 - in trunk: . app/core app/tools



Author: mitch
Date: Tue Feb  5 17:53:37 2008
New Revision: 24812
URL: http://svn.gnome.org/viewvc/gimp?rev=24812&view=rev

Log:
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"



Modified:
   trunk/ChangeLog
   trunk/app/core/gimpimagemap.c
   trunk/app/tools/gimpgegltool.c

Modified: trunk/app/core/gimpimagemap.c
==============================================================================
--- trunk/app/core/gimpimagemap.c	(original)
+++ trunk/app/core/gimpimagemap.c	Tue Feb  5 17:53:37 2008
@@ -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 @@
         {
           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",

Modified: trunk/app/tools/gimpgegltool.c
==============================================================================
--- trunk/app/tools/gimpgegltool.c	(original)
+++ trunk/app/tools/gimpgegltool.c	Tue Feb  5 17:53:37 2008
@@ -32,6 +32,7 @@
 
 #include "core/gimpdrawable.h"
 #include "core/gimpimage.h"
+#include "core/gimpimagemap.h"
 
 #include "widgets/gimppropwidgets.h"
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]