[gimp] pdb: the new gimp-image-insert procedures should accept no parent



commit 9486971f07d2d47c0c5a33e5f2bcfcf051020ba6
Author: Sven Neumann <sven gimp org>
Date:   Mon Sep 6 22:54:53 2010 +0200

    pdb: the new gimp-image-insert procedures should accept no parent
    
    Allow to pass -1 as parent parameter to the newly added
    gimp-image-insert procedures by adding the 'none_ok' flag.

 app/pdb/image-cmds.c       |    8 ++++----
 tools/pdbgen/pdb/image.pdb |    8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/app/pdb/image-cmds.c b/app/pdb/image-cmds.c
index e607e7c..27aa086 100644
--- a/app/pdb/image-cmds.c
+++ b/app/pdb/image-cmds.c
@@ -3765,7 +3765,7 @@ register_image_procs (GimpPDB *pdb)
                                gimp_param_spec_layer_id ("parent",
                                                          "parent",
                                                          "The parent layer",
-                                                         pdb->gimp, FALSE,
+                                                         pdb->gimp, TRUE,
                                                          GIMP_PARAM_READWRITE));
   gimp_procedure_add_argument (procedure,
                                gimp_param_spec_int32 ("position",
@@ -3870,7 +3870,7 @@ register_image_procs (GimpPDB *pdb)
                                gimp_param_spec_channel_id ("parent",
                                                            "parent",
                                                            "The parent channel",
-                                                           pdb->gimp, FALSE,
+                                                           pdb->gimp, TRUE,
                                                            GIMP_PARAM_READWRITE));
   gimp_procedure_add_argument (procedure,
                                gimp_param_spec_int32 ("position",
@@ -3975,7 +3975,7 @@ register_image_procs (GimpPDB *pdb)
                                gimp_param_spec_vectors_id ("parent",
                                                            "parent",
                                                            "The parent vectors",
-                                                           pdb->gimp, FALSE,
+                                                           pdb->gimp, TRUE,
                                                            GIMP_PARAM_READWRITE));
   gimp_procedure_add_argument (procedure,
                                gimp_param_spec_int32 ("position",
@@ -4196,7 +4196,7 @@ register_image_procs (GimpPDB *pdb)
                                gimp_param_spec_item_id ("parent",
                                                         "parent",
                                                         "The new parent item",
-                                                        pdb->gimp, FALSE,
+                                                        pdb->gimp, TRUE,
                                                         GIMP_PARAM_READWRITE));
   gimp_procedure_add_argument (procedure,
                                gimp_param_spec_int32 ("position",
diff --git a/tools/pdbgen/pdb/image.pdb b/tools/pdbgen/pdb/image.pdb
index 0750fdd..95ec2ea 100644
--- a/tools/pdbgen/pdb/image.pdb
+++ b/tools/pdbgen/pdb/image.pdb
@@ -892,7 +892,7 @@ HELP
 	  desc => 'The image' },
 	{ name => 'item', type => 'item',
 	  desc => 'The item to reorder' },
-	{ name => 'parent', type => 'item',
+	{ name => 'parent', type => 'item', none_ok => 1,
           desc => 'The new parent item' },
         { name => 'position', type => 'int32',
           desc => 'The new position of the item' }
@@ -1208,7 +1208,7 @@ HELP
 	  desc => 'The image' },
 	{ name => 'layer', type => 'layer',
 	  desc => 'The layer' },
-	{ name => 'parent', type => 'layer',
+	{ name => 'parent', type => 'layer', none_ok => 1,
           desc => 'The parent layer' },
 	{ name => 'position', type => 'int32',
 	  desc => 'The layer position' }
@@ -1440,7 +1440,7 @@ HELP
 	  desc => 'The image' },
 	{ name => 'channel', type => 'channel',
 	  desc => 'The channel' },
-	{ name => 'parent', type => 'channel',
+	{ name => 'parent', type => 'channel', none_ok => 1,
           desc => 'The parent channel' },
 	{ name => 'position', type => 'int32',
 	  desc => 'The channel position' }
@@ -1540,7 +1540,7 @@ HELP
 	  desc => 'The image' },
 	{ name => 'vectors', type => 'vectors',
 	  desc => 'The vectors' },
-	{ name => 'parent', type => 'vectors',
+	{ name => 'parent', type => 'vectors', none_ok => 1,
           desc => 'The parent vectors' },
 	{ name => 'position', type => 'int32',
 	  desc => 'The vectors position' }



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