Gimp/pdb/groups
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.pdb app, pdb: fix #13480 inconsistent use of maximum radius... 2025-04-11 02:02:40 +00:00
brush_select.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
brushes.pdb app, libgimp, pdb: gimp_*_get_list() for various resource types return a resource array. 2024-11-03 17:45:10 +01:00
buffer.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
channel.pdb app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00
context.pdb app, libgimp, pdb: renaming a few PDB functions. 2024-11-03 17:45:10 +01:00
debug.pdb app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00
display.pdb app, libgimp, pdb: prettify the previous commit. 2024-08-26 22:48:45 +02:00
drawable.pdb app, libgimp, pdb, plug-ins: add a few Script-fu wrapper of libgimp filter API. 2024-12-17 16:24:54 +00:00
drawable_color.pdb app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00
drawable_edit.pdb app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00
drawable_filter.pdb Issue #12569: clip issue with new filter API. 2025-02-09 02:07:08 +01:00
drawable_select.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
dynamics.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
edit.pdb app, libgimp, pdb, plug-ins: new GimpCoreObjectArray type and drawablearray… 2024-10-25 23:28:42 +02:00
file.pdb app, libgimp, pdb, plug-ins: improve and rename gimp_file_save_thumbnail() to… 2025-01-21 20:31:27 +01:00
floating_sel.pdb Initial space invasion commit in GIMP 2018-07-21 16:42:57 +02:00
font.pdb app, libgimp, pdb: removing gimp_fonts_get_by_name(). 2024-11-03 17:45:10 +01:00
font_select.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
fonts.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
gimp.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
gimprc.pdb app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00
gradient.pdb app, libgimp, pdb: gimp_gradient_get_custom_samples() also returns an array of colors. 2024-11-03 13:35:16 +01:00
gradient_select.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
gradients.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
group_layer.pdb Issue #12772: fix annotations. 2025-01-21 15:04:34 +01:00
help.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
image.pdb PDB: improve doc string for gimp-image-reorder-item 2024-11-19 09:21:09 -05:00
image_autocrop.pdb app, libgimp, pdb: allow NULL input drawable to the new crop procedures. 2025-02-09 19:24:41 +01:00
image_color_profile.pdb Remove GimpUint8Array in favor of GBytes 2023-05-23 23:37:50 +02:00
image_convert.pdb app, libgimp, pdb: factorize a bunch of similar code into gimp_pdb_get_resource(). 2023-07-27 15:25:32 +02:00
image_grid.pdb app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00
image_guides.pdb pdb: Allow off-canvas guides with Script-fu 2024-05-27 15:42:10 +00:00
image_sample_points.pdb pdb, libgimp: improve function documentation for sample points 2023-04-09 21:32:00 -04:00
image_select.pdb app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00
image_transform.pdb Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
image_undo.pdb pdb: forgot one case of behavior in previous commit 2023-07-21 17:03:32 -04:00
item.pdb app, libgimp*, pdb, plug-ins: change itemarray PDB type to use GimpCoreObjectArray. 2024-10-25 23:28:42 +02:00
item_transform.pdb app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00
layer.pdb app, libgimp, pdb, plug-ins: PDB (gimp-layer-copy) made public. 2025-01-20 22:38:01 +01:00
message.pdb Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
paint_tools.pdb app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00
palette.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
palette_select.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
palettes.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
path.pdb app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00
pattern.pdb API PDB: resource-get-by-name return NULL instead of error 2024-03-19 12:05:28 +00:00
pattern_select.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
patterns.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
pdb.pdb app, pdb: (gimp-pdb-proc-exists) should only return TRUE for public procedures. 2025-02-26 14:12:25 +01:00
plug_in.pdb Issue #8124: plug-in localization now totally moved plug-in side. 2022-07-05 12:22:32 +02:00
progress.pdb app, libgimp, pdb: fix a null_ok/none_ok mixup. 2025-01-20 20:55:48 +01:00
resource.pdb app, libgimp, pdb: prettify the previous commit. 2024-08-26 22:48:45 +02:00
selection.pdb app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00
text_layer.pdb pdb: Pass GIMP object when creating text layer via API 2025-03-31 11:07:14 +00:00
text_tool.pdb app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00
unit.pdb app, libgimp*, pdb, plug-ins: rename various public API name s/float/double/. 2024-11-02 15:00:03 +01:00