[gimp] app: use gegl_node_has_pad() instead of gegl_node_get_pad()



commit 33479c1086c3181307ad0fe5b3c8ab53ebfd4c01
Author: Michael Natterer <mitch gimp org>
Date:   Sat Jan 22 23:54:25 2011 +0100

    app: use gegl_node_has_pad() instead of gegl_node_get_pad()

 app/core/gimpimagemap.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/core/gimpimagemap.c b/app/core/gimpimagemap.c
index 3dba5bc..5904cd4 100644
--- a/app/core/gimpimagemap.c
+++ b/app/core/gimpimagemap.c
@@ -398,8 +398,8 @@ gimp_image_map_apply (GimpImageMap        *image_map,
             g_object_unref (sink_operation);
           }
 
-          if (gegl_node_get_pad (image_map->operation, "input") &&
-              gegl_node_get_pad (image_map->operation, "output"))
+          if (gegl_node_has_pad (image_map->operation, "input") &&
+              gegl_node_has_pad (image_map->operation, "output"))
             {
               /*  if there are input and output pads we probably have a
                *  filter OP, connect it on both ends.
@@ -410,7 +410,7 @@ gimp_image_map_apply (GimpImageMap        *image_map,
                                    image_map->output,
                                    NULL);
             }
-          else if (gegl_node_get_pad (image_map->operation, "output"))
+          else if (gegl_node_has_pad (image_map->operation, "output"))
             {
               /*  if there is only an output pad we probably have a
                *  source OP, blend its result on top of the original



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