GNOME Bugzilla – Bug 378394
gimp-vectors-new-from-* return IDs, not PDB_VECTORs
Last modified: 2006-11-23 21:46:42 UTC
This is oddly inconsistent- every other gimp-vectors function, including gimp-vectors-new, uses PDB_VECTORs.
A PDB_VECTOR is an ID. There's nothing inconsistent here.
To elaborate, gimp-vectors-new-from-* returns *multiple* IDs, and there's no array type for vectors (nor images, nor drawables, etc.). This is consistent with gimp-image-list or gimp-image-get-channels, etc.
We could simply rename them gimp-vectors-import-from-* or gimp-vectors-load-from-*. The reason of course is that a SVG-file/string can contain multiple paths.
Hmm, perhaps it would indeed make sense to rename the functions to avoid confusion with other gimp-vectors-new constructors.
I have renamed these functions: 2006-11-23 Simon Budig <simon@gimp.org> * tools/pdbgen/pdb/vectors.pdb: renamed gimp_vectors_new_from_* to gimp_vectors_import_from_*, as discussed in bug #378394. * plug-ins/common/svg.c * libgimp/gimp.def: changed accordingly. * libgimp/gimpvectors_pdb.[ch] * app/pdb/vectors_cmds.c: regenerated.