diff --git a/app/pdb/image-cmds.c b/app/pdb/image-cmds.c index e607e7cac4..27aa0867fd 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 0750fdd781..95ec2ea874 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' }