Started a PDB api for vectors/strokes. Not yet functional, this commit is
2005-04-14 Simon Budig <simon@gimp.org> Started a PDB api for vectors/strokes. Not yet functional, this commit is to get the infrastructure up and running. * app/vectors/gimpstroke.[ch] * app/vectors/gimpvectors.[ch]: Added IDs to the strokes * tools/pdbgen/pdb.pl: corrected "vectors" type, deleted "path" type. * tools/pdbgen/pdb/image.pdb: added gimp_image_get_vectors() * tools/pdbgen/pdb/vectors.pdb: New file for the vectors API (just a stub for now) * tools/pdbgen/Makefile.am: Added vectors.pdb * tools/pdbgen/groups.pl: regenerated. * plug-ins/script-fu/siod-wrapper.c: Enable the Path/Vectors type. * libgimp/gimpvectors_pdb.[ch] * app/pdb/vectors_cmds.c: new autogenerated files. * libgimp/Makefile.am * app/pdb/Makefile.am: Added new autogenerated file. * libgimp/gimp_pdb.h * libgimp/gimpimage_pdb.[ch] * app/pdb/image_cmds.c * app/pdb/internal_procs.c: regenerated.
This commit is contained in:
@ -854,8 +854,13 @@ marshall_proc_db_call (LISP a)
|
||||
break;
|
||||
|
||||
case GIMP_PDB_PATH:
|
||||
return my_err ("Paths are currently unsupported as arguments",
|
||||
car (a));
|
||||
if (!TYPEP (car (a), tc_flonum))
|
||||
success = FALSE;
|
||||
if (success)
|
||||
{
|
||||
args[i].type = GIMP_PDB_PATH;
|
||||
args[i].data.d_int32 = get_c_long (car (a));
|
||||
}
|
||||
break;
|
||||
|
||||
case GIMP_PDB_PARASITE:
|
||||
@ -1126,7 +1131,8 @@ marshall_proc_db_call (LISP a)
|
||||
break;
|
||||
|
||||
case GIMP_PDB_PATH:
|
||||
return my_err ("Paths are currently unsupported as return values", NIL);
|
||||
return_val = cons (flocons (values[i + 1].data.d_int32),
|
||||
return_val);
|
||||
break;
|
||||
|
||||
case GIMP_PDB_PARASITE:
|
||||
|
||||
Reference in New Issue
Block a user