Gimp/app/pdb
Jacob Boerema 5273f26ef0 app, pdb: fix #13480 inconsistent use of maximum radius...
for generated brushes.
The maximum radius we allowed for generated brushes was not used
consistently everywhere.
In the API call we clamped it to 0.0-32767.0, while the param_spec
set min and max to 0.1 and 4000.0, and the brush editor used a
maximum of 1000.0.
Using a large value (probably anything larger than 4000) would
sooner or later lead to a crash.

Instead of manual changes everywhere, let's define a maximum and
minimum in one place and use that wherever we need the min/max values.
Use the values as set in the param_spec for the defines.
The only place we can't easily do that is in brush.pdb, so we add
a comment above our defines that the values need updating there too.

Actually we should probably use more defines for other values too,
that way there is less chance of min/max values getting out of synch
throughout our code.
2025-04-11 02:02:40 +00:00
..
brush-cmds.c app, pdb: fix #13480 inconsistent use of maximum radius... 2025-04-11 02:02:40 +00:00
brush-select-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
brushes-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
buffer-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
channel-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
context-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
debug-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
display-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
drawable-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
drawable-color-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
drawable-edit-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
drawable-filter-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
drawable-select-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
dynamics-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
edit-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
file-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
floating-sel-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
font-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
font-select-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
fonts-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
gimp-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
gimp-pdb-compat.c PDB: obsolete aliased deprecated PDB procedures 2024-10-22 15:18:50 -04:00
gimp-pdb-compat.h app: use the GParamSpec's name in gimp_pdb_dump() 2019-08-30 11:43:53 +02:00
gimppdb-query.c app: gimp_pdb_query() in libgimp doesn't return private procedures anymore. 2025-01-20 00:01:23 +01:00
gimppdb-query.h Remove GimpStringArray in favor of GStrv 2022-02-12 00:07:53 +00:00
gimppdb-utils.c app: Rename app/core GimpVectors vectors API... 2024-07-13 05:07:57 +00:00
gimppdb-utils.h libgimp, app, pdb: Rename GimpVectors to GimpPath 2024-07-12 06:16:25 +00:00
gimppdb.c app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00
gimppdb.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimppdbcontext.c app: do not sync the PDB context "name" property. 2022-04-16 01:40:17 +02:00
gimppdbcontext.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimppdberror.c Use "Returns:" to annotate return values 2019-08-03 07:53:47 +00:00
gimppdberror.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpprocedure.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
gimpprocedure.h app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
gimprc-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
gradient-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
gradient-select-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
gradients-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
group-layer-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
help-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
image-autocrop-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
image-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
image-color-profile-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
image-convert-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
image-grid-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
image-guides-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
image-sample-points-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
image-select-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
image-transform-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
image-undo-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
internal-procs.c API: fix #12860 autocrop is internal, not a compatibility plugin 2025-02-09 16:51:13 +00:00
internal-procs.h API: fix #12860 autocrop is internal, not a compatibility plugin 2025-02-09 16:51:13 +00:00
item-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
item-transform-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
layer-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
meson.build API: fix #12860 autocrop is internal, not a compatibility plugin 2025-02-09 16:51:13 +00:00
message-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
paint-tools-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
palette-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
palette-select-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
palettes-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
path-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
pattern-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
pattern-select-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
patterns-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
pdb-cmds.c app, pdb: (gimp-pdb-proc-exists) should only return TRUE for public procedures. 2025-02-26 14:12:25 +01:00
pdb-types.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
plug-in-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
progress-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
README
resource-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
selection-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
text-layer-cmds.c pdb: Pass GIMP object when creating text layer via API 2025-03-31 11:07:14 +00:00
text-tool-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00
unit-cmds.c app, pdb: internal procedures are simply ones with type GIMP_PDB_PROC_TYPE_INTERNAL. 2025-02-25 20:01:29 +01:00

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 ../../pdb/groups.