mirror of https://github.com/GNOME/gimp.git
Bug 678732 - gimp-image-insert-layer inserts into a wrong place...
Fix the docs, the function does what it's supposed to do. Passing "0, -1" actually means "insert where the ui would insert" and is supposed to be used when e.g. scripts create layers.
This commit is contained in:
parent
d46041665c
commit
e620eb8cef
|
@ -3833,7 +3833,7 @@ register_image_procs (GimpPDB *pdb)
|
||||||
gimp_procedure_set_static_strings (procedure,
|
gimp_procedure_set_static_strings (procedure,
|
||||||
"gimp-image-insert-layer",
|
"gimp-image-insert-layer",
|
||||||
"Add the specified layer to the image.",
|
"Add the specified layer to the image.",
|
||||||
"This procedure adds the specified layer to the image at the given position. If the specified parent is a valid layer group (See 'gimp-item-is-group' and 'gimp-layer-group-new') then the layer is added inside the group. If the parent is 0, the layer is added inside the main stack, outside of any group. The position argument specifies the location of the layer inside the stack (or the group, if a valid parent was supplied), starting from the top (0) and increasing. If the position is specified as -1 and the parent is specified as 0, then the layer is inserted above the active layer. The layer type must be compatible with the image base type.",
|
"This procedure adds the specified layer to the image at the given position. If the specified parent is a valid layer group (See 'gimp-item-is-group' and 'gimp-layer-group-new') then the layer is added inside the group. If the parent is 0, the layer is added inside the main stack, outside of any group. The position argument specifies the location of the layer inside the stack (or the group, if a valid parent was supplied), starting from the top (0) and increasing. If the position is specified as -1 and the parent is specified as 0, then the layer is inserted above the active layer, or inside the group if the active layer is a layer group. The layer type must be compatible with the image base type.",
|
||||||
"Spencer Kimball & Peter Mattis",
|
"Spencer Kimball & Peter Mattis",
|
||||||
"Spencer Kimball & Peter Mattis",
|
"Spencer Kimball & Peter Mattis",
|
||||||
"1995-1996",
|
"1995-1996",
|
||||||
|
|
|
@ -1086,8 +1086,9 @@ gimp_image_add_layer (gint32 image_ID,
|
||||||
* specifies the location of the layer inside the stack (or the group,
|
* specifies the location of the layer inside the stack (or the group,
|
||||||
* if a valid parent was supplied), starting from the top (0) and
|
* if a valid parent was supplied), starting from the top (0) and
|
||||||
* increasing. If the position is specified as -1 and the parent is
|
* increasing. If the position is specified as -1 and the parent is
|
||||||
* specified as 0, then the layer is inserted above the active layer.
|
* specified as 0, then the layer is inserted above the active layer,
|
||||||
* The layer type must be compatible with the image base type.
|
* or inside the group if the active layer is a layer group. The layer
|
||||||
|
* type must be compatible with the image base type.
|
||||||
*
|
*
|
||||||
* Returns: TRUE on success.
|
* Returns: TRUE on success.
|
||||||
**/
|
**/
|
||||||
|
|
|
@ -1122,13 +1122,14 @@ sub image_insert_layer {
|
||||||
This procedure adds the specified layer to the image at the given
|
This procedure adds the specified layer to the image at the given
|
||||||
position. If the specified parent is a valid layer group (See
|
position. If the specified parent is a valid layer group (See
|
||||||
gimp_item_is_group() and gimp_layer_group_new()) then the layer is
|
gimp_item_is_group() and gimp_layer_group_new()) then the layer is
|
||||||
added inside the group. If the parent is 0, the layer is added
|
added inside the group. If the parent is 0, the layer is added inside
|
||||||
inside the main stack, outside of any group. The position argument
|
the main stack, outside of any group. The position argument specifies
|
||||||
specifies the location of the layer inside the stack (or the group, if
|
the location of the layer inside the stack (or the group, if a valid
|
||||||
a valid parent was supplied), starting from the top (0) and increasing.
|
parent was supplied), starting from the top (0) and increasing. If
|
||||||
If the position is specified as -1 and the parent is specified as 0,
|
the position is specified as -1 and the parent is specified as 0, then
|
||||||
then the layer is inserted above the active layer. The layer type must
|
the layer is inserted above the active layer, or inside the group if
|
||||||
be compatible with the image base type.
|
the active layer is a layer group. The layer type must be compatible
|
||||||
|
with the image base type.
|
||||||
HELP
|
HELP
|
||||||
|
|
||||||
&std_pdb_misc;
|
&std_pdb_misc;
|
||||||
|
|
Loading…
Reference in New Issue