GNOME Bugzilla – Bug 306426
add PDB API for the the image grid
Last modified: 2005-09-30 20:08:34 UTC
A PDB API for the image grid would be nice to have. As a start, there should be an API to read the grid spacings and grid offsets. Functions to modify the grid can be added later.
Could be a nice task for someone who wants to get his hands dirty in GIMP code. Please ask for advice on where to start.
Created attachment 52668 [details] [review] Fix Makefiles This patch fixes the Makefile.am in tools/pdbgen libgimp app/pdb So that the new API compiles. It also removes /*< pdb-skip >*/ from the GimpGridStyle enum so that it can be accessed from the PDB API
Created attachment 52669 [details] The image grid PDB API This adds the actual PDB API
Created attachment 52671 [details] A test for the image grid PDB API This quick and dirty python plug-in tests the image grid PDB API.
Thanks, I have committed your patch with some smaller modifications. 2005-09-30 Sven Neumann <sven@gimp.org> * app/core/core-enums.[ch] * libgimpbase/gimpbaseenums.[ch]: moved GimpGridStyle enum to libgimpbase. * app/core/gimpimage-grid.h: indentation. * app/pdb/Makefile.am * libgimp/Makefile.am * tools/pdbgen/Makefile.am * tools/pdbgen/pdb/grid.pdb: applied slightly modified patch by Sylvain FORET that adds a PDB API for the image grid. * app/pdb/grid_cmds.c * app/pdb/internal_procs.c * libgimp/gimp_pdb.h * libgimp/gimpenums.c.tail * libgimp/gimpgrid_pdb.[ch] * tools/pdbgen/enums.pl * tools/pdbgen/groups.pl: (re)generated. * libgimp/gimp.def * libgimpbase/gimpbase.def: updated.
Seems to work nicely :-) Closing as FIXED.