gimp/app/pdb
Jehan 48cb7e76d3 app, libgimp, pdb: add g_return*_if_fail() test for array size args.
Generated libgimp functions' arguments are normally tested through the
PDB, so that you get proper error messages when trying to call a
function with invalid arguments.
This is not true anymore for array arguments since the size argument is
not a PDB arg, only in the C function. Therefore I'm adding an
infrastructure asserting on invalid size, using the same PDB type
annotations as other args. It is important to assert valid input on
plug-in side (i.e. libgimp) so that the core doesn't make any assumption
on having received valid input when it has not.

Also changing size argument of gimppainttools PDB-generated functions to
proper gsize.
2024-10-25 23:31:06 +02:00
..
README pdb: (try 3) move PDB generation and sources to toplevel/pdb 2017-12-17 14:16:08 -05:00
brush-cmds.c app, libgimp, pdb, plug-ins: add ability to default to context for all resource args. 2024-09-06 16:33:24 +02:00
brush-select-cmds.c app, libgimp, pdb, plug-ins: add ability to default to context for all resource args. 2024-09-06 16:33:24 +02:00
brushes-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
buffer-cmds.c pdb, libgimp: Fix return type of gimp-buffer-get-image-type 2024-08-17 23:23:51 -04:00
channel-cmds.c app, libgimp, pdb, plug-ins: merge gimp_channel_new() in libgimp and PDB. 2024-09-29 12:27:49 +02:00
context-cmds.c app, libgimp, pdb, plug-ins: array size's type should be gsize. 2024-10-25 23:28:42 +02:00
debug-cmds.c app, pdb: fix PDB string wrapping in generated calls of… 2022-06-05 01:57:02 +02:00
display-cmds.c app, libgimp, pdb: prettify the previous commit. 2024-08-26 22:48:45 +02:00
drawable-cmds.c pdb: Remove item_is_attached restriction from NDE filters 2024-07-15 21:12:17 +00:00
drawable-color-cmds.c app, libgimp, pdb: array length are not PDB arguments anymore. 2024-10-25 23:28:42 +02:00
drawable-edit-cmds.c app, pdb: fix PDB string wrapping in generated calls of… 2022-06-05 01:57:02 +02:00
drawable-select-cmds.c app, libgimp, pdb: generate widgets for GIMP_PROC_ARG_LAYER|CHANNEL arguments. 2023-10-01 21:02:34 +02:00
dynamics-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
edit-cmds.c app, libgimp, pdb, plug-ins: new GimpCoreObjectArray type and drawablearray… 2024-10-25 23:28:42 +02:00
file-cmds.c app, libgimp, pdb, plug-ins: layerarray PDB type is now a GimpCoreObjectArray. 2024-10-25 23:28:42 +02:00
floating-sel-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
font-cmds.c app, libgimp, pdb: all resource (and subtype) array PDB types as GimpCoreObjectArray. 2024-10-25 23:28:42 +02:00
font-select-cmds.c app, libgimp, pdb, plug-ins: add ability to default to context for all resource args. 2024-09-06 16:33:24 +02:00
fonts-cmds.c app, libgimp, pdb: Fix generation warnings 2024-09-24 22:56:44 +00:00
gimp-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02: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() returns a GStrv. 2022-05-24 17:26:50 +02: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: float arrays don't need size arguments too. 2024-10-25 23:28:42 +02: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: fix leak. 2024-08-18 22:01:08 +02:00
gimpprocedure.h app: GimpAction now has a "reason" parameter to explain being disabled. 2021-04-23 19:43:30 +02:00
gimprc-cmds.c Issue #8900 and #9923: reimplementing GimpUnit as a proper class. 2024-08-02 10:46:38 +02:00
gradient-cmds.c app, libgimp, pdb, plug-ins: array size's type should be gsize. 2024-10-25 23:28:42 +02:00
gradient-select-cmds.c app, libgimp, pdb, plug-ins: add ability to default to context for all resource args. 2024-09-06 16:33:24 +02:00
gradients-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
group-layer-cmds.c app, libgimp: oups, fixing some generated sources. 2024-07-07 10:43:51 +02:00
help-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
image-cmds.c app, libgimp, pdb: imagearray PDB type as GimpCoreObjectArray. 2024-10-25 23:28:42 +02:00
image-color-profile-cmds.c Remove GimpUint8Array in favor of GBytes 2023-05-23 23:37:50 +02:00
image-convert-cmds.c app, libgimp, pdb: factorize a bunch of similar code into gimp_pdb_get_resource(). 2023-07-27 15:25:32 +02:00
image-grid-cmds.c app, libgimp*, modules, pdb, plug-ins: new GimpParamColor. 2024-04-19 23:25:13 +02:00
image-guides-cmds.c pdb: Allow off-canvas guides with Script-fu 2024-05-27 15:42:10 +00:00
image-sample-points-cmds.c pdb, libgimp: improve function documentation for sample points 2023-04-09 21:32:00 -04:00
image-select-cmds.c app, libgimp, pdb: array length are not PDB arguments anymore. 2024-10-25 23:28:42 +02:00
image-transform-cmds.c Issue #10588: enumerations for RotationType can't be used in Python 2024-01-05 13:28:49 -05:00
image-undo-cmds.c app, libgimp, libgimpwidgets, plug-ins, etc: rename behaviour to behavior 2023-07-21 15:35:23 -04:00
internal-procs.c pdb, libgimp: Add API to get/set Emulate Brush Dynamics 2024-10-21 10:55:27 +00:00
internal-procs.h pdb, libgimp: Rename libgimp GimpVectors vectors API... 2024-07-08 23:39:51 +00:00
item-cmds.c app, libgimp*, pdb, plug-ins: change itemarray PDB type to use GimpCoreObjectArray. 2024-10-25 23:28:42 +02:00
item-transform-cmds.c Issue #10588: enumerations for RotationType can't be used in Python 2024-01-05 13:28:49 -05:00
layer-cmds.c app, libgimp, pdb, plug-ins: new GimpGroupLayer class in libgimp. 2024-07-07 10:27:04 +02:00
meson.build pdb, libgimp: Rename libgimp GimpVectors vectors API... 2024-07-08 23:39:51 +00:00
message-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
paint-tools-cmds.c app, libgimp, pdb: add g_return*_if_fail() test for array size args. 2024-10-25 23:31:06 +02:00
palette-cmds.c app, libgimp, pdb, plug-ins: rename gimp_palette_entry_[gs]et_*(). 2024-09-23 18:37:27 +02:00
palette-select-cmds.c app, libgimp, pdb, plug-ins: add ability to default to context for all resource args. 2024-09-06 16:33:24 +02:00
palettes-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
path-cmds.c app, libgimp, pdb, plug-ins: array size's type should be gsize. 2024-10-25 23:28:42 +02:00
pattern-cmds.c app, libgimp, pdb, plug-ins: add ability to default to context for all resource args. 2024-09-06 16:33:24 +02:00
pattern-select-cmds.c app, libgimp, pdb, plug-ins: add ability to default to context for all resource args. 2024-09-06 16:33:24 +02:00
patterns-cmds.c Issue #4201: meson: pdbgen not working. 2022-03-28 15:25:23 +02:00
pdb-cmds.c app, libgimp, pdb: new GimpVectorLoadProcedure class. 2024-04-24 01:16:46 +02: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, libgimp, pdb, plug-ins: array size's type should be gsize. 2024-10-25 23:28:42 +02:00
plug-in-compat-cmds.c app, libgimp, pdb, plug-ins: array size's type should be gsize. 2024-10-25 23:28:42 +02:00
progress-cmds.c app, libgimp, pdb, plug-ins: fix failure to set plug-in as transient. 2024-06-08 21:54:21 +02:00
resource-cmds.c app, libgimp, pdb, plug-ins: add ability to default to context for all resource args. 2024-09-06 16:33:24 +02:00
selection-cmds.c app, libgimp, pdb, plug-ins: new GimpCoreObjectArray type and drawablearray… 2024-10-25 23:28:42 +02:00
text-layer-cmds.c app, libgimp, pdb, plug-ins: add ability to default to context for all resource args. 2024-09-06 16:33:24 +02:00
text-tool-cmds.c app, libgimp, pdb, plug-ins: add ability to default to context for all resource args. 2024-09-06 16:33:24 +02:00
unit-cmds.c Issue #434: remove broken plural support for GimpUnit. 2024-08-06 11:39:57 +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 ../../pdb/groups.