mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
0aec9a2b83
commit
9486971f07
|
@ -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",
|
||||
|
|
|
@ -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' }
|
||||
|
|
Loading…
Reference in New Issue