gimp/app/pdb
Michael Natterer 9dd373d86e Bug 620604 - Description of "histogram" procedure is slightly inaccurate
Fix totally broken value ranges of integer PDB parameters. Magically,
the bug was affecting only exactly the two cases mentioned in above
bug report.

* tools/pdbgen/pdb.pl (arg_parse): return <, <=, > and >= literally
  instead of applying a mapping that was originally meant for
  generated C code that would e.g. transform "0 <= int32 < 10" into
  "if (value < 0 || value >= 10) fail". This inversion of all
  operators is now wrong because PDB parameters have been turned into
  GParamSpecs which always need inclusive ranges as min and max
  values.

* tools/pdbgen/pdbgen.pl (arrayexpand): generated array length type
  specs must be "0 <= int32", not "0 < int32".

* tools/pdbgen/app.pl: when generating integer param specs, check if
  the value range is specified in terms of < instead of <=, and
  add/subtract 1, resuting in the inclusive range needed for integer
  GParamSpecs.

* app/pdb/color-cmds.c: regenerated, fixing the two broken ranges
  mentioned in the bug report.
2010-06-05 19:26:06 +02:00
..
.gitignore Added .gitignore files generated with git svn create-ignore. 2009-01-31 11:37:44 +00:00
Makefile.am reorder sections consistently. Remove redundant CFLAGS. 2008-10-07 11:58:14 +00:00
README Added another warning about autogenerated files 2001-01-21 22:28:16 +00:00
brush-cmds.c app: flip context and name parameters in GimpDataNewFunc 2010-04-10 19:55:42 +02:00
brush-select-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
brushes-cmds.c app: add a GimpContext parameter to GimpDataLoadFunc 2010-04-11 13:12:41 +02:00
buffer-cmds.c Remove GIMP_OBJECT() casts when calling gimp_object_get_name() 2009-08-31 22:47:18 +02:00
channel-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
color-cmds.c Bug 620604 - Description of "histogram" procedure is slightly inaccurate 2010-06-05 19:26:06 +02:00
context-cmds.c Remove GIMP_OBJECT() casts when calling gimp_object_get_name() 2009-08-31 22:47:18 +02:00
convert-cmds.c Refuse to convert layer trees to indexed 2009-09-07 21:09:24 +02:00
display-cmds.c Move "disp_count" and "instance_count" to GimpImagePrivate 2010-02-03 21:22:00 +01:00
drawable-cmds.c Remove GIMP_OBJECT() casts when calling gimp_object_get_name() 2009-08-31 22:47:18 +02:00
drawable-transform-cmds.c Change PDB wrappers to check for "is group" separately 2009-08-29 09:16:35 +02:00
edit-cmds.c Move gimp_edit_paste_as_new() to gimp_image_new_from_buffer() 2010-02-09 22:32:49 +01:00
fileops-cmds.c Fix error handling in gimp-file-save PDB invoker 2009-09-15 23:01:29 +02:00
floating-sel-cmds.c Change PDB wrappers to check for "is group" separately 2009-08-29 09:16:35 +02:00
font-select-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
fonts-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gimp-pdb-compat.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gimp-pdb-compat.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gimppdb-query.c app: Always use gimp_object_get_name() 2009-08-29 12:41:29 +02:00
gimppdb-query.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gimppdb-utils.c Seal GimpData completely and add the missing accessors 2009-10-31 18:48:38 +01:00
gimppdb-utils.h Add gimp_pdb_item_is_not_group() 2009-08-28 20:15:13 +02:00
gimppdb.c Remove GIMP_OBJECT() casts when calling gimp_object_get_name() 2009-08-31 22:47:18 +02:00
gimppdb.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gimppdberror.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gimppdberror.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gimpprocedure.c Remove GIMP_OBJECT() casts when calling gimp_object_get_name() 2009-08-31 22:47:18 +02:00
gimpprocedure.h New helper function that creates a new GimpProcedure that can be used to 2009-01-25 20:06:09 +00:00
gimprc-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gradient-cmds.c app: flip context and name parameters in GimpDataNewFunc 2010-04-10 19:55:42 +02:00
gradient-select-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gradients-cmds.c app: add a GimpContext parameter to GimpDataLoadFunc 2010-04-11 13:12:41 +02:00
grid-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
guides-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
help-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
image-cmds.c app: move gimp_image_pick_layer() to its own file 2010-03-07 01:55:31 +01:00
internal-procs.c Added a function to export the Pango markup of a text layer 2010-06-01 21:21:40 +02:00
internal-procs.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
layer-cmds.c Bug 604508 - gimp-layer-new-from-visible should work from updated projection 2009-12-14 14:01:37 +01:00
makefile.msc Get rid of useless diff to master 2009-10-13 21:15:01 +02:00
message-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
misc-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
paint-tools-cmds.c Change PDB wrappers to check for "is group" separately 2009-08-29 09:16:35 +02:00
palette-cmds.c app: flip context and name parameters in GimpDataNewFunc 2010-04-10 19:55:42 +02:00
palette-select-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
palettes-cmds.c app: add a GimpContext parameter to GimpDataLoadFunc 2010-04-11 13:12:41 +02:00
parasite-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
paths-cmds.c Move "layers", "channels" and "vectors" to GimpImagePrivate 2010-02-03 23:00:31 +01:00
pattern-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
pattern-select-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
patterns-cmds.c app: add a GimpContext parameter to GimpDataLoadFunc 2010-04-11 13:12:41 +02:00
pdb-types.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
plug-in-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
procedural-db-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
progress-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
selection-cmds.c Change PDB wrappers to check for "is group" separately 2009-08-29 09:16:35 +02:00
selection-tools-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
text-layer-cmds.c Added a function to export the Pango markup of a text layer 2010-06-01 21:21:40 +02:00
text-tool-cmds.c Change PDB wrappers to check for "is group" separately 2009-08-29 09:16:35 +02:00
transform-tools-cmds.c Don't modify locked items from PDB wrappers 2009-08-20 20:47:01 +02:00
undo-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
unit-cmds.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
vectors-cmds.c Remove GIMP_OBJECT() casts when calling gimp_object_get_name() 2009-08-31 22:47:18 +02:00

README

This directory contains the PDB-wrappers for various internal
Gimp functions.

THESE FILES ARE AUTOGENERATED AND CHANGES HERE ARE USELESS!

If you need to change the code please have a look in ../../tools/pdbgen/pdb.