[gimp] app: remove the over from the plug_in_plasma() compat wrapper



commit 3582625ce0ae3c1d6fdb29a697685304281adb58
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 13 09:43:19 2013 +0200

    app: remove the over from the plug_in_plasma() compat wrapper
    
    because gimp_drawable_apply_operation() supports src ops now.

 app/pdb/plug-in-compat-cmds.c       |   30 +++++++++++-------------------
 tools/pdbgen/pdb/plug_in_compat.pdb |   30 +++++++++++-------------------
 2 files changed, 22 insertions(+), 38 deletions(-)
---
diff --git a/app/pdb/plug-in-compat-cmds.c b/app/pdb/plug-in-compat-cmds.c
index 44b856c..1b6c62b 100644
--- a/app/pdb/plug-in-compat-cmds.c
+++ b/app/pdb/plug-in-compat-cmds.c
@@ -700,32 +700,24 @@ plug_in_plasma_invoker (GimpProcedure         *procedure,
                                      GIMP_PDB_ITEM_CONTENT, error) &&
           gimp_pdb_item_is_not_group (GIMP_ITEM (drawable), error))
         {
-          gint x, y, width, height;
-          GeglNode *plasma, *over, *node;
+          GeglNode *node;
+          gint      x, y, width, height;
 
           gimp_item_mask_intersect (GIMP_ITEM (drawable), &x, &y, &width, &height);
 
-          node = gegl_node_new ();
-
-          plasma = gegl_node_new_child (node,
-                                        "operation", "gegl:plasma",
-                                        "seed", seed,
-                                        "turbulence", turbulence,
-                                        "x", x,
-                                        "y", y,
-                                        "width", width,
-                                        "height", height,
-                                        NULL);
-
-          over = gegl_node_new_child (node,
-                                      "operation", "svg:src",
+          node = gegl_node_new_child (NULL,
+                                      "operation",  "gegl:plasma",
+                                      "seed",       seed,
+                                      "turbulence", turbulence,
+                                      "x",          x,
+                                      "y",          y,
+                                      "width",      width,
+                                      "height",     height,
                                       NULL);
 
-          gegl_node_connect_to (plasma, "output",  over, "aux");
-
           gimp_drawable_apply_operation (drawable, progress,
                                          C_("undo-type", "Plasma"),
-                                         over);
+                                         node);
 
           g_object_unref (node);
         }
diff --git a/tools/pdbgen/pdb/plug_in_compat.pdb b/tools/pdbgen/pdb/plug_in_compat.pdb
index bb928f0..93498c3 100644
--- a/tools/pdbgen/pdb/plug_in_compat.pdb
+++ b/tools/pdbgen/pdb/plug_in_compat.pdb
@@ -740,32 +740,24 @@ HELP
                                  GIMP_PDB_ITEM_CONTENT, error) &&
       gimp_pdb_item_is_not_group (GIMP_ITEM (drawable), error))
     {
-      gint x, y, width, height;
-      GeglNode *plasma, *over, *node;
+      GeglNode *node;
+      gint      x, y, width, height;
 
       gimp_item_mask_intersect (GIMP_ITEM (drawable), &x, &y, &width, &height);
 
-      node = gegl_node_new ();
-
-      plasma = gegl_node_new_child (node,
-                                    "operation", "gegl:plasma",
-                                    "seed", seed,
-                                    "turbulence", turbulence,
-                                   "x", x,
-                                   "y", y,
-                                    "width", width,
-                                    "height", height,
-                                    NULL);
-
-      over = gegl_node_new_child (node,
-                                  "operation", "svg:src",
+      node = gegl_node_new_child (NULL,
+                                  "operation",  "gegl:plasma",
+                                  "seed",       seed,
+                                  "turbulence", turbulence,
+                                  "x",          x,
+                                  "y",          y,
+                                  "width",      width,
+                                  "height",     height,
                                   NULL);
 
-      gegl_node_connect_to (plasma, "output",  over, "aux");
-
       gimp_drawable_apply_operation (drawable, progress,
                                      C_("undo-type", "Plasma"),
-                                     over);
+                                     node);
 
       g_object_unref (node);
     }


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