create a libgimp C wrapper for gimp-image-get-vectors-by-tattoo; this

2007-11-05  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb: create a libgimp C wrapper for
	gimp-image-get-vectors-by-tattoo; this function was accidentally
	forgotten in the 2.4 libgimp API.

	* app/pdb/image_cmds.c
	* libgimp/gimpimage_pdb.[ch]: regenerated.


svn path=/trunk/; revision=24066
This commit is contained in:
Sven Neumann 2007-11-05 18:19:02 +00:00 committed by Sven Neumann
parent c197362e9d
commit 5c4d5416cc
5 changed files with 52 additions and 5 deletions

View File

@ -1,3 +1,12 @@
2007-11-05 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/image.pdb: create a libgimp C wrapper for
gimp-image-get-vectors-by-tattoo; this function was accidentally
forgotten in the 2.4 libgimp API.
* app/pdb/image_cmds.c
* libgimp/gimpimage_pdb.[ch]: regenerated.
2007-11-05 Sven Neumann <sven@gimp.org>
* app/widgets/gimpcairo-utils.h: introduced macros to set a single

View File

@ -4640,9 +4640,9 @@ register_image_procs (GimpPDB *pdb)
"gimp-image-get-vectors-by-tattoo",
"Find a vectors with a given tattoo in an image.",
"This procedure returns the vectors with the given tattoo in the specified image.",
"Jay Cox",
"Jay Cox",
"1998",
"Simon Budig",
"Simon Budig",
"2005",
NULL);
gimp_procedure_add_argument (procedure,
gimp_param_spec_image_id ("image",

View File

@ -2688,3 +2688,39 @@ gimp_image_get_channel_by_tattoo (gint32 image_ID,
return channel_ID;
}
/**
* gimp_image_get_vectors_by_tattoo:
* @image_ID: The image.
* @tattoo: The tattoo of the vectors to find.
*
* Find a vectors with a given tattoo in an image.
*
* This procedure returns the vectors with the given tattoo in the
* specified image.
*
* Returns: The vectors with the specified tattoo.
*
* Since: GIMP 2.6
*/
gint32
gimp_image_get_vectors_by_tattoo (gint32 image_ID,
gint tattoo)
{
GimpParam *return_vals;
gint nreturn_vals;
gint32 vectors_ID = -1;
return_vals = gimp_run_procedure ("gimp-image-get-vectors-by-tattoo",
&nreturn_vals,
GIMP_PDB_IMAGE, image_ID,
GIMP_PDB_INT32, tattoo,
GIMP_PDB_END);
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
vectors_ID = return_vals[1].data.d_vectors;
gimp_destroy_params (return_vals, nreturn_vals);
return vectors_ID;
}

View File

@ -181,6 +181,8 @@ gint32 gimp_image_get_layer_by_tattoo (gint32
gint tattoo);
gint32 gimp_image_get_channel_by_tattoo (gint32 image_ID,
gint tattoo);
gint32 gimp_image_get_vectors_by_tattoo (gint32 image_ID,
gint tattoo);
G_END_DECLS

View File

@ -2434,7 +2434,7 @@ sub image_get_vectors_by_tattoo {
This procedure returns the vectors with the given tattoo in the specified image.
HELP
&jay_pdb_misc('1998');
&simon_pdb_misc('2005', '2.6');
@inargs = (
{ name => 'image', type => 'image',
@ -2597,7 +2597,7 @@ CODE
image_get_channel_by_tattoo
image_get_vectors_by_tattoo);
%exports = (app => [@procs], lib => [@procs[0..45,48..74]]);
%exports = (app => [@procs], lib => [@procs[0..45,48..75]]);
$desc = 'Image';