Commit de7546f5 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

reordered vectors procedures.

2006-03-22  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/image.pdb: reordered vectors procedures.

	* tools/pdbgen/pdb/parasite.pdb: removed all utility functions
	and added parasite procedures for vectors.

	* tools/pdbgen/pdb/paths.pdb: removed get_visible() and
	set_visible(), deprecated all procedures that are already
	implemented in the vectors namespace.

	* tools/pdbgen/pdb/channel.pdb
	* tools/pdbgen/pdb/vectors.pdb: minor cleanup.

	* libgimp/gimp.def: changed accordingly.

	* app/pdb/channel_cmds.c
	* app/pdb/image_cmds.c
	* app/pdb/internal_procs.c
	* app/pdb/parasite_cmds.c
	* app/pdb/paths_cmds.c
	* app/pdb/vectors_cmds.c
	* libgimp/gimpimage_pdb.[ch]
	* libgimp/gimpparasite_pdb.[ch]
	* libgimp/gimppaths_pdb.[ch]
	* libgimp/gimpvectors_pdb.c: regenerated.
parent 2368a6a3
2006-03-22 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/image.pdb: reordered vectors procedures.
* tools/pdbgen/pdb/parasite.pdb: removed all utility functions
and added parasite procedures for vectors.
* tools/pdbgen/pdb/paths.pdb: removed get_visible() and
set_visible(), deprecated all procedures that are already
implemented in the vectors namespace.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/vectors.pdb: minor cleanup.
* libgimp/gimp.def: changed accordingly.
* app/pdb/channel_cmds.c
* app/pdb/image_cmds.c
* app/pdb/internal_procs.c
* app/pdb/parasite_cmds.c
* app/pdb/paths_cmds.c
* app/pdb/vectors_cmds.c
* libgimp/gimpimage_pdb.[ch]
* libgimp/gimpparasite_pdb.[ch]
* libgimp/gimppaths_pdb.[ch]
* libgimp/gimpvectors_pdb.c: regenerated.
2006-03-22 Michael Natterer <mitch@gimp.org>
* app/core/core-enums.h: export GimpBrushGeneratedShape to the PDB.
......
......@@ -284,7 +284,9 @@ channel_copy_invoker (Gimp *gimp,
{
channel_copy = GIMP_CHANNEL (gimp_item_duplicate (GIMP_ITEM (channel),
G_TYPE_FROM_INSTANCE (channel), FALSE));
success = (channel_copy != NULL);
if (! channel_copy)
success = FALSE;
}
return_args = procedural_db_return_args (&channel_copy_proc, success);
......
This diff is collapsed.
......@@ -75,7 +75,7 @@ void register_undo_procs (Gimp *gimp);
void register_unit_procs (Gimp *gimp);
void register_vectors_procs (Gimp *gimp);
/* 523 procedures registered total */
/* 525 procedures registered total */
void
internal_procs_init (Gimp *gimp)
......
This diff is collapsed.
......@@ -52,8 +52,6 @@ static ProcRecord path_set_tattoo_proc;
static ProcRecord get_path_by_tattoo_proc;
static ProcRecord path_get_locked_proc;
static ProcRecord path_set_locked_proc;
static ProcRecord path_get_visible_proc;
static ProcRecord path_set_visible_proc;
static ProcRecord path_to_selection_proc;
static ProcRecord path_import_proc;
static ProcRecord path_import_string_proc;
......@@ -74,8 +72,6 @@ register_paths_procs (Gimp *gimp)
procedural_db_register (gimp, &get_path_by_tattoo_proc);
procedural_db_register (gimp, &path_get_locked_proc);
procedural_db_register (gimp, &path_set_locked_proc);
procedural_db_register (gimp, &path_get_visible_proc);
procedural_db_register (gimp, &path_set_visible_proc);
procedural_db_register (gimp, &path_to_selection_proc);
procedural_db_register (gimp, &path_import_proc);
procedural_db_register (gimp, &path_import_string_proc);
......@@ -140,12 +136,12 @@ static ProcRecord path_list_proc =
{
"gimp-path-list",
"gimp-path-list",
"List the paths associated with the passed image.",
"List the paths associated with the passed image.",
"Andy Thomas",
"Andy Thomas",
"1999",
NULL,
"This procedure is deprecated! Use 'gimp-image-get-vectors' instead.",
"This procedure is deprecated! Use 'gimp-image-get-vectors' instead.",
"",
"",
"",
"gimp-image-get-vectors",
GIMP_INTERNAL,
1,
path_list_inargs,
......@@ -209,12 +205,12 @@ static ProcRecord path_get_current_proc =
{
"gimp-path-get-current",
"gimp-path-get-current",
"The name of the current path. Error if no paths.",
"The name of the current path. Error if no paths.",
"Andy Thomas",
"Andy Thomas",
"1999",
NULL,
"This procedure is deprecated! Use 'gimp-image-get-active-vectors' instead.",
"This procedure is deprecated! Use 'gimp-image-get-active-vectors' instead.",
"",
"",
"",
"gimp-image-get-active-vectors",
GIMP_INTERNAL,
1,
path_get_current_inargs,
......@@ -272,12 +268,12 @@ static ProcRecord path_set_current_proc =
{
"gimp-path-set-current",
"gimp-path-set-current",
"Sets the current path associated with the passed image.",
"Sets a named path as the current path.",
"Andy Thomas",
"Andy Thomas",
"1999",
NULL,
"This procedure is deprecated! Use 'gimp-image-set-active-vectors' instead.",
"This procedure is deprecated! Use 'gimp-image-set-active-vectors' instead.",
"",
"",
"",
"gimp-image-set-active-vectors",
GIMP_INTERNAL,
2,
path_set_current_inargs,
......@@ -335,12 +331,12 @@ static ProcRecord path_delete_proc =
{
"gimp-path-delete",
"gimp-path-delete",
"Delete the named path associated with the passed image.",
"Delete the named path.",
"Andy Thomas",
"Andy Thomas",
"1999",
NULL,
"This procedure is deprecated! Use 'gimp-image-remove-vectors' instead.",
"This procedure is deprecated! Use 'gimp-image-remove-vectors' instead.",
"",
"",
"",
"gimp-image-remove-vectors",
GIMP_INTERNAL,
2,
path_delete_inargs,
......@@ -867,12 +863,12 @@ static ProcRecord path_get_tattoo_proc =
{
"gimp-path-get-tattoo",
"gimp-path-get-tattoo",
"Returns the tattoo associated with the name path.",
"This procedure returns the tattoo associated with the specified path. A tattoo is a unique and permanent identifier attached to a path that can be used to uniquely identify a path within an image even between sessions.",
"Andy Thomas",
"Andy Thomas",
"1999",
NULL,
"This procedure is deprecated! Use 'gimp-vectors-get-tattoo' instead.",
"This procedure is deprecated! Use 'gimp-vectors-get-tattoo' instead.",
"",
"",
"",
"gimp-vectors-get-tattoo",
GIMP_INTERNAL,
2,
path_get_tattoo_inargs,
......@@ -938,12 +934,12 @@ static ProcRecord path_set_tattoo_proc =
{
"gimp-path-set-tattoo",
"gimp-path-set-tattoo",
"Sets the tattoo associated with the named path.",
"This procedure sets the tattoo associated with the specified path. A tattoo is a unique and permenant identifier attached to a path that can be used to uniquely identify a path within an image even between sessions. Note that the value passed to this function must have been obtained from a previous call to path_get_tattoo.",
"Andy Thomas",
"Andy Thomas",
"1999",
NULL,
"This procedure is deprecated! Use 'gimp-vectors-set-tattoo' instead.",
"This procedure is deprecated! Use 'gimp-vectors-set-tattoo' instead.",
"",
"",
"",
"gimp-vectors-set-tattoo",
GIMP_INTERNAL,
3,
path_set_tattoo_inargs,
......@@ -1015,12 +1011,12 @@ static ProcRecord get_path_by_tattoo_proc =
{
"gimp-get-path-by-tattoo",
"gimp-get-path-by-tattoo",
"Return the name of the path with the given tattoo.",
"The procedure returns the name of the path in the specified image which has the passed tattoo. The tattoos are unique within the image and will be preserved across sessions and through renaming of the path. An error is returned if no path with the specified tattoo can be found.",
"Andy Thomas",
"Andy Thomas",
"1999",
NULL,
"This procedure is deprecated! Use 'gimp-image-get-vectors-by-tattoo' instead.",
"This procedure is deprecated! Use 'gimp-image-get-vectors-by-tattoo' instead.",
"",
"",
"",
"gimp-image-get-vectors-by-tattoo",
GIMP_INTERNAL,
2,
get_path_by_tattoo_inargs,
......@@ -1094,12 +1090,12 @@ static ProcRecord path_get_locked_proc =
{
"gimp-path-get-locked",
"gimp-path-get-locked",
"Returns the locked status associated with the named path.",
"This procedure returns the lock status associated with the specified path. A path can be \"locked\" which means that the transformation tool operations will also apply to the path.",
"Andy Thomas",
"Andy Thomas",
"1999",
NULL,
"This procedure is deprecated! Use 'gimp-vectors-get-linked' instead.",
"This procedure is deprecated! Use 'gimp-vectors-get-linked' instead.",
"",
"",
"",
"gimp-vectors-get-linked",
GIMP_INTERNAL,
2,
path_get_locked_inargs,
......@@ -1165,12 +1161,12 @@ static ProcRecord path_set_locked_proc =
{
"gimp-path-set-locked",
"gimp-path-set-locked",
"Set the locked status associated with the named path.",
"This procedure sets the lock status associated with the specified path. A path can be \"locked\" which means that the transformation tool operations will also apply to the path.",
"Andy Thomas",
"Andy Thomas",
"1999",
NULL,
"This procedure is deprecated! Use 'gimp-vectors-set-linked' instead.",
"This procedure is deprecated! Use 'gimp-vectors-set-linked' instead.",
"",
"",
"",
"gimp-vectors-set-linked",
GIMP_INTERNAL,
3,
path_set_locked_inargs,
......@@ -1179,156 +1175,6 @@ static ProcRecord path_set_locked_proc =
{ { path_set_locked_invoker } }
};
static Argument *
path_get_visible_invoker (Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
{
gboolean success = TRUE;
Argument *return_args;
GimpImage *gimage;
gchar *name;
gboolean visible = FALSE;
gimage = gimp_image_get_by_ID (gimp, args[0].value.pdb_int);
if (! GIMP_IS_IMAGE (gimage))
success = FALSE;
name = (gchar *) args[1].value.pdb_pointer;
if (name == NULL || !g_utf8_validate (name, -1, NULL))
success = FALSE;
if (success)
{
GimpVectors *vectors = gimp_image_get_vectors_by_name (gimage, name);
if (vectors)
visible = gimp_item_get_visible (GIMP_ITEM (vectors));
else
success = FALSE;
}
return_args = procedural_db_return_args (&path_get_visible_proc, success);
if (success)
return_args[1].value.pdb_int = visible;
return return_args;
}
static ProcArg path_get_visible_inargs[] =
{
{
GIMP_PDB_IMAGE,
"image",
"The image"
},
{
GIMP_PDB_STRING,
"name",
"The name of the path whose visibility should be obtained."
}
};
static ProcArg path_get_visible_outargs[] =
{
{
GIMP_PDB_INT32,
"visible",
"TRUE if the path is visible, FALSE otherwise"
}
};
static ProcRecord path_get_visible_proc =
{
"gimp-path-get-visible",
"gimp-path-get-visible",
"Get the visibility of the named path.",
"This procedure returns the visibility of the specified path.",
"Andy Thomas",
"Andy Thomas",
"1999",
NULL,
GIMP_INTERNAL,
2,
path_get_visible_inargs,
1,
path_get_visible_outargs,
{ { path_get_visible_invoker } }
};
static Argument *
path_set_visible_invoker (Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
{
gboolean success = TRUE;
GimpImage *gimage;
gchar *name;
gboolean visible;
gimage = gimp_image_get_by_ID (gimp, args[0].value.pdb_int);
if (! GIMP_IS_IMAGE (gimage))
success = FALSE;
name = (gchar *) args[1].value.pdb_pointer;
if (name == NULL || !g_utf8_validate (name, -1, NULL))
success = FALSE;
visible = args[2].value.pdb_int ? TRUE : FALSE;
if (success)
{
GimpVectors *vectors = gimp_image_get_vectors_by_name (gimage, name);
if (vectors)
gimp_item_set_visible (GIMP_ITEM (vectors), visible, TRUE);
else
success = FALSE;
}
return procedural_db_return_args (&path_set_visible_proc, success);
}
static ProcArg path_set_visible_inargs[] =
{
{
GIMP_PDB_IMAGE,
"image",
"The image"
},
{
GIMP_PDB_STRING,
"name",
"The name of the path whose visibility should be set"
},
{
GIMP_PDB_INT32,
"visible",
"The new path visibility"
}
};
static ProcRecord path_set_visible_proc =
{
"gimp-path-set-visible",
"gimp-path-set-visible",
"Sets the visibility of the named path.",
"This procedure sets the specified path's visibility.",
"Sven Neumann <sven@gimp.org>",
"Sven Neumann",
"2005",
NULL,
GIMP_INTERNAL,
3,
path_set_visible_inargs,
0,
NULL,
{ { path_set_visible_invoker } }
};
static Argument *
path_to_selection_invoker (Gimp *gimp,
GimpContext *context,
......
......@@ -33,7 +33,6 @@
#include "gimp-intl.h"
#include "vectors/gimpanchor.h"
#include "vectors/gimpbezierstroke.h"
#include "vectors/gimpvectors-compat.h"
#include "vectors/gimpvectors.h"
static ProcRecord vectors_new_proc;
......@@ -148,7 +147,7 @@ static ProcRecord vectors_new_proc =
{
"gimp-vectors-new",
"gimp-vectors-new",
"Creates a new empty vectors object. Needs to be added to an image using gimp_image_add_vectors.",
"Creates a new empty vectors object.",
"Creates a new empty vectors object. Needs to be added to an image using gimp_image_add_vectors.",
"Simon Budig",
"Simon Budig",
......
......@@ -469,7 +469,6 @@ EXPORTS
gimp_path_get_point_at_dist
gimp_path_get_points
gimp_path_get_tattoo
gimp_path_get_visible
gimp_path_import
gimp_path_import_string
gimp_path_list
......@@ -477,7 +476,6 @@ EXPORTS
gimp_path_set_locked
gimp_path_set_points
gimp_path_set_tattoo
gimp_path_set_visible
gimp_path_stroke_current
gimp_path_to_selection
gimp_pattern_get_info
......@@ -613,6 +611,10 @@ EXPORTS
gimp_vectors_get_tattoo
gimp_vectors_get_visible
gimp_vectors_new
gimp_vectors_parasite_attach
gimp_vectors_parasite_detach
gimp_vectors_parasite_find
gimp_vectors_parasite_list
gimp_vectors_set_linked
gimp_vectors_set_name
gimp_vectors_set_tattoo
......
......@@ -1096,32 +1096,33 @@ gimp_image_lower_layer_to_bottom (gint32 image_ID,
}
/**
* gimp_image_raise_vectors:
* gimp_image_add_channel:
* @image_ID: The image.
* @vectors_ID: The vectors object to raise.
* @channel_ID: The channel.
* @position: The channel position.
*
* Raise the specified vectors in the image's vectors stack
* Add the specified channel to the image.
*
* This procedure raises the specified vectors one step in the existing
* vectors stack. It will not move the vectors if there is no vectors
* above it.
* This procedure adds the specified channel to the image. The position
* channel is not currently used, so the channel is always inserted at
* the top of the channel stack.
*
* Returns: TRUE on success.
*
* Since: GIMP 2.4
*/
gboolean
gimp_image_raise_vectors (gint32 image_ID,
gint32 vectors_ID)
gimp_image_add_channel (gint32 image_ID,
gint32 channel_ID,
gint position)
{
GimpParam *return_vals;
gint nreturn_vals;
gboolean success = TRUE;
return_vals = gimp_run_procedure ("gimp-image-raise-vectors",
return_vals = gimp_run_procedure ("gimp-image-add-channel",
&nreturn_vals,
GIMP_PDB_IMAGE, image_ID,
GIMP_PDB_VECTORS, vectors_ID,
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_INT32, position,
GIMP_PDB_END);
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
......@@ -1132,32 +1133,29 @@ gimp_image_raise_vectors (gint32 image_ID,
}
/**
* gimp_image_lower_vectors:
* gimp_image_remove_channel:
* @image_ID: The image.
* @vectors_ID: The vectors object to lower.
* @channel_ID: The channel.
*
* Lower the specified vectors in the image's vectors stack
* Remove the specified channel from the image.
*
* This procedure lowers the specified vectors one step in the existing
* vectors stack. It will not move the vectors if there is no vectors
* below it.
* This procedure removes the specified channel from the image. If the
* channel doesn't exist, an error is returned.
*
* Returns: TRUE on success.
*
* Since: GIMP 2.4
*/
gboolean
gimp_image_lower_vectors (gint32 image_ID,
gint32 vectors_ID)
gimp_image_remove_channel (gint32 image_ID,
gint32 channel_ID)
{
GimpParam *return_vals;
gint nreturn_vals;
gboolean success = TRUE;
return_vals = gimp_run_procedure ("gimp-image-lower-vectors",
return_vals = gimp_run_procedure ("gimp-image-remove-channel",
&nreturn_vals,
GIMP_PDB_IMAGE, image_ID,
GIMP_PDB_VECTORS, vectors_ID,
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_END);
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
......@@ -1168,33 +1166,30 @@ gimp_image_lower_vectors (gint32 image_ID,
}
/**
* gimp_image_raise_vectors_to_top:
* gimp_image_raise_channel:
* @image_ID: The image.
* @vectors_ID: The vectors object to raise to top.
* @channel_ID: The channel to raise.
*
* Raise the specified vectors in the image's vectors stack to top of
* stack
* Raise the specified channel in the image's channel stack
*
* This procedure raises the specified vectors to top of the existing
* vectors stack. It will not move the vectors if there is no vectors
* This procedure raises the specified channel one step in the existing
* channel stack. It will not move the channel if there is no channel
* above it.
*
* Returns: TRUE on success.
*
* Since: GIMP 2.4
*/
gboolean
gimp_image_raise_vectors_to_top (gint32 image_ID,
gint32 vectors_ID)
gimp_image_raise_channel (gint32 image_ID,
gint32 channel_ID)
{
GimpParam *return_vals;
gint nreturn_vals;
gboolean success = TRUE;
return_vals = gimp_run_procedure ("gimp-image-raise-vectors-to-top",
return_vals = gimp_run_procedure ("gimp-image-raise-channel",
&nreturn_vals,
GIMP_PDB_IMAGE, image_ID,
GIMP_PDB_VECTORS, vectors_ID,
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_END);
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
......@@ -1205,33 +1200,30 @@ gimp_image_raise_vectors_to_top (gint32 image_ID,
}
/**
* gimp_image_lower_vectors_to_bottom:
* gimp_image_lower_channel:
* @image_ID: The image.
* @vectors_ID: The vectors object to lower to bottom.
* @channel_ID: The channel to lower.
*
* Lower the specified vectors in the image's vectors stack to bottom
* of stack
* Lower the specified channel in the image's channel stack
*
* This procedure lowers the specified vectors to bottom of the
* existing vectors stack. It will not move the vectors if there is no
* vectors below it.
* This procedure lowers the specified channel one step in the existing
* channel stack. It will not move the channel if there is no channel
* below it.
*
* Returns: TRUE on success.
*
* Since: GIMP 2.4
*/
gboolean
gimp_image_lower_vectors_to_bottom (gint32 image_ID,
gint32 vectors_ID)
gimp_image_lower_channel (gint32 image_ID,
gint32 channel_ID)
{
GimpParam *return_vals;
gint nreturn_vals;
gboolean success = TRUE;
return_vals = gimp_run_procedure ("gimp-image-lower-vectors-to-bottom",
return_vals = gimp_run_procedure ("gimp-image-lower-channel",
&nreturn_vals,
GIMP_PDB_IMAGE, image_ID,
GIMP_PDB_VECTORS, vectors_ID,
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_END);
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
......@@ -1242,32 +1234,32 @@ gimp_image_lower_vectors_to_bottom (gint32 image_ID,
}
/**
* gimp_image_add_channel:
* gimp_image_add_vectors:
* @image_ID: The image.
* @channel_ID: The channel.
* @position: The channel position.
* @vectors_ID: The vectors object.
* @position: The vectors objects position.
*
* Add the specified channel to the image.
* Add the specified vectors object to the image.
*
* This procedure adds the specified channel to the image. The position
* channel is not currently used, so the channel is always inserted at
* the top of the channel stack.
* This procedure adds the specified vectors object to the gimage at
* the given position. If the position is specified as -1, then the
* vectors object is inserted at the top of the vectors stack.
*
* Returns: TRUE on success.
*/
gboolean
gimp_image_add_channel (gint32 image_ID,
gint32 channel_ID,
gimp_image_add_vectors (gint32 image_ID,
gint32 vectors_ID,
gint position)
{
GimpParam *return_vals;
gint nreturn_vals;
gboolean success = TRUE;
return_vals = gimp_run_procedure ("gimp-image-add-channel",
return_vals = gimp_run_procedure ("gimp-image-add-vectors",
&nreturn_vals,
GIMP_PDB_IMAGE, image_ID,
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_VECTORS, vectors_ID,
GIMP_PDB_INT32, position,
GIMP_PDB_END);
......@@ -1279,29 +1271,31 @@ gimp_image_add_channel (gint32 image_ID,
}
/**
* gimp_image_remove_channel:
* gimp_image_remove_vectors:
* @image_ID: The image.
* @channel_ID: The channel.
* @vectors_ID: The vectors object.
*
* Remove the specified channel from the image.
* Remove the specified path from the image.
*
* This procedure removes the specified channel from the image. If the
* channel doesn't exist, an error is returned.
* This procedure removes the specified path from the image. If the
* path doesn't exist, an error is returned.
*
* Returns: TRUE on success.
*
* Since: GIMP 2.4
*/
gboolean
gimp_image_remove_channel (gint32 image_ID,
gint32 channel_ID)
gimp_image_remove_vectors (gint32 image_ID,
gint32 vectors_ID)
{
GimpParam *return_vals;
gint nreturn_vals;
gboolean success = TRUE;
return_vals = gimp_run_procedure ("gimp-image-remove-channel",
return_vals = gimp_run_procedure ("gimp-image-remove-vectors",
&nreturn_vals,
GIMP_PDB_IMAGE, image_ID,
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_VECTORS, vectors_ID,
GIMP_PDB_END);
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
......@@ -1312,33 +1306,32 @@ gimp_image_remove_channel (gint32 image_ID,
}
/**
* gimp_image_add_vectors:
* gimp_image_raise_vectors:
* @image_ID: The image.
* @vectors_ID: The vectors object.
* @position: The vectors objects position.
* @vectors_ID: The vectors object to raise.
*
* Add the specified vectors object to the image.
* Raise the specified vectors in the image's vectors stack
*
* This procedure adds the specified vectors object to the gimage at
* the given position. If the position is specified as -1, then the
* vectors object is inserted at the top of the vectors stack.
* This procedure raises the specified vectors one step in the existing
* vectors stack. It will not move the vectors if there is no vectors
* above it.
*
* Returns: TRUE on success.
*
* Since: GIMP 2.4
*/
gboolean
gimp_image_add_vectors (gint32 image_ID,
gint32 vectors_ID,
gint position)
gimp_image_raise_vectors (gint32 image_ID,
gint32 vectors_ID)
{
GimpParam *return_vals;
gint nreturn_vals;
gboolean success = TRUE;
return_vals = gimp_run_procedure ("gimp-image-add-vectors",
return_vals = gimp_run_procedure ("gimp-image-raise-vectors",
&nreturn_vals,
GIMP_PDB_IMAGE, image_ID,
GIMP_PDB_VECTORS, vectors_ID,
GIMP_PDB_INT32, position,
GIMP_PDB_END);
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
......@@ -1349,28 +1342,29 @@ gimp_image_add_vectors (gint32 image_ID,
}
/**
* gimp_image_remove_vectors:
* gimp_image_lower_vectors:
* @image_ID: The image.
* @vectors_ID: The vectors object.
* @vectors_ID: The vectors object to lower.
*