[gimp] pdb: don't recommend deprecated replacement procedures for deprecated procedures



commit 1a359a138db8e993b9346d6a01f6ebf983859498
Author: Michael Natterer <mitch gimp org>
Date:   Fri Mar 25 22:03:14 2011 +0100

    pdb: don't recommend deprecated replacement procedures for deprecated procedures

 app/pdb/transform-tools-cmds.c       |   36 +++++++++++++++++-----------------
 libgimp/gimptransformtools_pdb.c     |   13 +++++------
 tools/pdbgen/pdb/transform_tools.pdb |   12 +++++-----
 3 files changed, 30 insertions(+), 31 deletions(-)
---
diff --git a/app/pdb/transform-tools-cmds.c b/app/pdb/transform-tools-cmds.c
index 2ae65c7..f9b60eb 100644
--- a/app/pdb/transform-tools-cmds.c
+++ b/app/pdb/transform-tools-cmds.c
@@ -487,12 +487,12 @@ register_transform_tools_procs (GimpPDB *pdb)
                                "gimp-flip");
   gimp_procedure_set_static_strings (procedure,
                                      "gimp-flip",
-                                     "Deprecated: Use 'gimp-drawable-transform-flip-simple' instead.",
-                                     "Deprecated: Use 'gimp-drawable-transform-flip-simple' instead.",
+                                     "Deprecated: Use 'gimp-item-transform-flip-simple' instead.",
+                                     "Deprecated: Use 'gimp-item-transform-flip-simple' instead.",
                                      "",
                                      "",
                                      "",
-                                     "gimp-drawable-transform-flip-simple");
+                                     "gimp-item-transform-flip-simple");
   gimp_procedure_add_argument (procedure,
                                gimp_param_spec_drawable_id ("drawable",
                                                             "drawable",
@@ -525,12 +525,12 @@ register_transform_tools_procs (GimpPDB *pdb)
                                "gimp-perspective");
   gimp_procedure_set_static_strings (procedure,
                                      "gimp-perspective",
-                                     "Deprecated: Use 'gimp-drawable-transform-perspective-default' instead.",
-                                     "Deprecated: Use 'gimp-drawable-transform-perspective-default' instead.",
+                                     "Deprecated: Use 'gimp-item-transform-perspective' instead.",
+                                     "Deprecated: Use 'gimp-item-transform-perspective' instead.",
                                      "",
                                      "",
                                      "",
-                                     "gimp-drawable-transform-perspective-default");
+                                     "gimp-item-transform-perspective");
   gimp_procedure_add_argument (procedure,
                                gimp_param_spec_drawable_id ("drawable",
                                                             "drawable",
@@ -608,12 +608,12 @@ register_transform_tools_procs (GimpPDB *pdb)
                                "gimp-rotate");
   gimp_procedure_set_static_strings (procedure,
                                      "gimp-rotate",
-                                     "Deprecated: Use 'gimp-drawable-transform-rotate-default' instead.",
-                                     "Deprecated: Use 'gimp-drawable-transform-rotate-default' instead.",
+                                     "Deprecated: Use 'gimp-item-transform-rotate' instead.",
+                                     "Deprecated: Use 'gimp-item-transform-rotate' instead.",
                                      "",
                                      "",
                                      "",
-                                     "gimp-drawable-transform-rotate-default");
+                                     "gimp-item-transform-rotate");
   gimp_procedure_add_argument (procedure,
                                gimp_param_spec_drawable_id ("drawable",
                                                             "drawable",
@@ -649,12 +649,12 @@ register_transform_tools_procs (GimpPDB *pdb)
                                "gimp-scale");
   gimp_procedure_set_static_strings (procedure,
                                      "gimp-scale",
-                                     "Deprecated: Use 'gimp-drawable-transform-scale-default' instead.",
-                                     "Deprecated: Use 'gimp-drawable-transform-scale-default' instead.",
+                                     "Deprecated: Use 'gimp-item-transform-scale' instead.",
+                                     "Deprecated: Use 'gimp-item-transform-scale' instead.",
                                      "",
                                      "",
                                      "",
-                                     "gimp-drawable-transform-scale-default");
+                                     "gimp-item-transform-scale");
   gimp_procedure_add_argument (procedure,
                                gimp_param_spec_drawable_id ("drawable",
                                                             "drawable",
@@ -708,12 +708,12 @@ register_transform_tools_procs (GimpPDB *pdb)
                                "gimp-shear");
   gimp_procedure_set_static_strings (procedure,
                                      "gimp-shear",
-                                     "Deprecated: Use 'gimp-drawable-transform-shear-default' instead.",
-                                     "Deprecated: Use 'gimp-drawable-transform-shear-default' instead.",
+                                     "Deprecated: Use 'gimp-item-transform-shear' instead.",
+                                     "Deprecated: Use 'gimp-item-transform-shear' instead.",
                                      "",
                                      "",
                                      "",
-                                     "gimp-drawable-transform-shear-default");
+                                     "gimp-item-transform-shear");
   gimp_procedure_add_argument (procedure,
                                gimp_param_spec_drawable_id ("drawable",
                                                             "drawable",
@@ -758,12 +758,12 @@ register_transform_tools_procs (GimpPDB *pdb)
                                "gimp-transform-2d");
   gimp_procedure_set_static_strings (procedure,
                                      "gimp-transform-2d",
-                                     "Deprecated: Use 'gimp-drawable-transform-2d-default' instead.",
-                                     "Deprecated: Use 'gimp-drawable-transform-2d-default' instead.",
+                                     "Deprecated: Use 'gimp-item-transform-2d' instead.",
+                                     "Deprecated: Use 'gimp-item-transform-2d' instead.",
                                      "",
                                      "",
                                      "",
-                                     "gimp-drawable-transform-2d-default");
+                                     "gimp-item-transform-2d");
   gimp_procedure_add_argument (procedure,
                                gimp_param_spec_drawable_id ("drawable",
                                                             "drawable",
diff --git a/libgimp/gimptransformtools_pdb.c b/libgimp/gimptransformtools_pdb.c
index 753f537..7ca7f54 100644
--- a/libgimp/gimptransformtools_pdb.c
+++ b/libgimp/gimptransformtools_pdb.c
@@ -42,7 +42,7 @@
  * @drawable_ID: The affected drawable.
  * @flip_type: Type of flip.
  *
- * Deprecated: Use gimp_drawable_transform_flip_simple() instead.
+ * Deprecated: Use gimp_item_transform_flip_simple() instead.
  *
  * Returns: The flipped drawable.
  **/
@@ -81,8 +81,7 @@ gimp_flip (gint32              drawable_ID,
  * @x3: The new x coordinate of lower-right corner of original bounding box.
  * @y3: The new y coordinate of lower-right corner of original bounding box.
  *
- * Deprecated: Use gimp_drawable_transform_perspective_default()
- * instead.
+ * Deprecated: Use gimp_item_transform_perspective() instead.
  *
  * Returns: The newly mapped drawable.
  **/
@@ -130,7 +129,7 @@ gimp_perspective (gint32   drawable_ID,
  * @interpolation: Whether to use interpolation.
  * @angle: The angle of rotation (radians).
  *
- * Deprecated: Use gimp_drawable_transform_rotate_default() instead.
+ * Deprecated: Use gimp_item_transform_rotate() instead.
  *
  * Returns: The rotated drawable.
  **/
@@ -167,7 +166,7 @@ gimp_rotate (gint32   drawable_ID,
  * @x1: The new x coordinate of the lower-right corner of the scaled region.
  * @y1: The new y coordinate of the lower-right corner of the scaled region.
  *
- * Deprecated: Use gimp_drawable_transform_scale_default() instead.
+ * Deprecated: Use gimp_item_transform_scale() instead.
  *
  * Returns: The scaled drawable.
  **/
@@ -208,7 +207,7 @@ gimp_scale (gint32   drawable_ID,
  * @shear_type: Type of shear.
  * @magnitude: The magnitude of the shear.
  *
- * Deprecated: Use gimp_drawable_transform_shear_default() instead.
+ * Deprecated: Use gimp_item_transform_shear() instead.
  *
  * Returns: The sheared drawable.
  **/
@@ -250,7 +249,7 @@ gimp_shear (gint32              drawable_ID,
  * @dest_x: X coordinate of where the centre goes.
  * @dest_y: Y coordinate of where the centre goes.
  *
- * Deprecated: Use gimp_drawable_transform_2d_default() instead.
+ * Deprecated: Use gimp_item_transform_2d() instead.
  *
  * Returns: The transformed drawable.
  **/
diff --git a/tools/pdbgen/pdb/transform_tools.pdb b/tools/pdbgen/pdb/transform_tools.pdb
index 43a687b..a20ce73 100644
--- a/tools/pdbgen/pdb/transform_tools.pdb
+++ b/tools/pdbgen/pdb/transform_tools.pdb
@@ -17,7 +17,7 @@
 # "Perlized" from C source by Manish Singh <yosh gimp org>
 
 sub flip {
-    &std_pdb_deprecated ('gimp-drawable-transform-flip-simple');
+    &std_pdb_deprecated ('gimp-item-transform-flip-simple');
 
     @inargs = (
 	{ name => 'drawable', type => 'drawable',
@@ -59,7 +59,7 @@ CODE
 }
 
 sub perspective {
-    &std_pdb_deprecated ('gimp-drawable-transform-perspective-default');
+    &std_pdb_deprecated ('gimp-item-transform-perspective');
 
     @inargs = (
 	{ name => 'drawable', type => 'drawable',
@@ -147,7 +147,7 @@ CODE
 }
 
 sub rotate {
-    &std_pdb_deprecated ('gimp-drawable-transform-rotate-default');
+    &std_pdb_deprecated ('gimp-item-transform-rotate');
 
     @inargs = (
 	{ name => 'drawable', type => 'drawable',
@@ -212,7 +212,7 @@ CODE
 }
 
 sub scale {
-    &std_pdb_deprecated ('gimp-drawable-transform-scale-default');
+    &std_pdb_deprecated ('gimp-item-transform-scale');
 
     @inargs = (
 	{ name => 'drawable', type => 'drawable',
@@ -288,7 +288,7 @@ CODE
 }
 
 sub shear {
-    &std_pdb_deprecated ('gimp-drawable-transform-shear-default');
+    &std_pdb_deprecated ('gimp-item-transform-shear');
 
     @inargs = (
 	{ name => 'drawable', type => 'drawable',
@@ -356,7 +356,7 @@ CODE
 }
 
 sub transform_2d {
-    &std_pdb_deprecated ('gimp-drawable-transform-2d-default');
+    &std_pdb_deprecated ('gimp-item-transform-2d');
 
     @inargs = (
 	{ name => 'drawable', type => 'drawable',



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