gimp/plug-ins
Jehan 70438028aa libgimp: PDB procedure arguments are not order-based anymore (API-wise).
As far as plug-in API is concerned, at least the calling API, order of arguments
when calling PDB procedures doesn't matter anymore.

Order still matters for creating procedures with standard arguments (for
instance, "run-mode" is first, then image, or file, drawables or whatnot,
depending on the subtype of procedure), but not for calling with libgimp.

Concretely in this commit:

- gimp_pdb_run_procedure_argv() was removed as it's intrinsically order-based.
- gimp_pdb_run_procedure() and gimp_pdb_run_procedure_valist() stay but their
  semantic changes. Instead of an ordered list of (type, value) couple, it's now
  an unordered list of (name, type, value) triplets. This way, you can also
  ignore as many args as you want if you intend to keep them default. For
  instance, say you have a procedure with 20 args and you only want to change
  the last one and keep the 19 first with default values: while you used to have
  to write down all 20 args annoyingly, now you can just list the only arg you
  care about.

There are 2 important consequences here:

1. Calling PDB procedures becomes much more semantic, which means scripts with
   PDB calls are simpler (smaller list of arguments) and easier to read (when
   you had 5 int arguments in a row, you couldn't know what they refer to,
   except by always checking the PDB source; now you'll have associated names,
   such as "width", "height" and so on) hence maintain.
2. We will have the ability to add arguments and even order the new arguments in
   middle of existing arguments without breaking compatibility. The only thing
   which will matter will be that default values of new arguments will have to
   behave like when the arg didn't exist. This way, existing scripts will not be
   broken. This will avoid us having to always create variants of PDB procedure
   (like original "file-bla-save", then variant "file-bla-save-2" and so on)
   each time we add arguments.

Note: gimp_pdb_run_procedure_array() was not removed yet because it's currently
used by the PDB. To be followed.
2023-10-16 21:56:37 +02:00
..
common libgimp: PDB procedure arguments are not order-based anymore (API-wise). 2023-10-16 21:56:37 +02:00
file-bmp libgimp, plug-ins: rename gimp_load_procedure_new2() as gimp_load_procedure_new(). 2023-10-01 21:02:32 +02:00
file-dds libgimp, plug-ins, extensions: gimp_image_procedure_new2() renamed gimp_image_procedure_new(). 2023-10-01 21:02:34 +02:00
file-exr libgimp, plug-ins: rename gimp_load_procedure_new2() as gimp_load_procedure_new(). 2023-10-01 21:02:32 +02:00
file-faxg3 libgimp, plug-ins: rename gimp_load_procedure_new2() as gimp_load_procedure_new(). 2023-10-01 21:02:32 +02:00
file-fits libgimp, plug-ins: rename gimp_load_procedure_new2() as gimp_load_procedure_new(). 2023-10-01 21:02:32 +02:00
file-fli libgimp, plug-ins: rename gimp_load_procedure_new2() as gimp_load_procedure_new(). 2023-10-01 21:02:32 +02:00
file-icns libgimp: PDB procedure arguments are not order-based anymore (API-wise). 2023-10-16 21:56:37 +02:00
file-ico libgimp: PDB procedure arguments are not order-based anymore (API-wise). 2023-10-16 21:56:37 +02:00
file-jpeg libgimp: PDB procedure arguments are not order-based anymore (API-wise). 2023-10-16 21:56:37 +02:00
file-psd plug-ins, libgimp: GimpRunThumbnailFunc now uses a GimpProcedureConfig rather… 2023-10-01 21:02:32 +02:00
file-raw libgimp, plug-ins: properly document the return values of GimpThumbnailProcedure. 2023-10-01 21:02:33 +02:00
file-sgi libgimp, plug-ins: rename gimp_load_procedure_new2() as gimp_load_procedure_new(). 2023-10-01 21:02:32 +02:00
file-tiff libgimp: PDB procedure arguments are not order-based anymore (API-wise). 2023-10-16 21:56:37 +02:00
file-webp libgimp, plug-ins: rename gimp_load_procedure_new2() as gimp_load_procedure_new(). 2023-10-01 21:02:32 +02:00
flame libgimp, plug-ins, extensions: gimp_image_procedure_new2() renamed gimp_image_procedure_new(). 2023-10-01 21:02:34 +02:00
fractal-explorer plug-ins: string fixes 2023-10-09 21:18:39 +00:00
gfig libgimp, plug-ins, extensions: gimp_image_procedure_new2() renamed gimp_image_procedure_new(). 2023-10-01 21:02:34 +02:00
gimpressionist libgimp, plug-ins, extensions: gimp_image_procedure_new2() renamed gimp_image_procedure_new(). 2023-10-01 21:02:34 +02:00
gradient-flare libgimp, plug-ins, extensions: gimp_image_procedure_new2() renamed gimp_image_procedure_new(). 2023-10-01 21:02:34 +02:00
help libgimp: PDB procedure arguments are not order-based anymore (API-wise). 2023-10-16 21:56:37 +02:00
help-browser libgimp, plug-ins: rename gimp_procedure_new2() as gimp_procedure_new() and… 2023-10-01 20:52:01 +02:00
ifs-compose libgimp, plug-ins, extensions: gimp_image_procedure_new2() renamed gimp_image_procedure_new(). 2023-10-01 21:02:34 +02:00
imagemap libgimp, plug-ins, extensions: gimp_image_procedure_new2() renamed gimp_image_procedure_new(). 2023-10-01 21:02:34 +02:00
lighting plug-ins: remove i18n for widget ID 2023-10-15 10:18:08 +00:00
map-object plug-ins: string fixes 2023-10-09 21:18:39 +00:00
metadata libgimp, plug-ins: rename gimp_procedure_new2() as gimp_procedure_new() and… 2023-10-01 20:52:01 +02:00
pagecurl libgimp, plug-ins, extensions: gimp_image_procedure_new2() renamed gimp_image_procedure_new(). 2023-10-01 21:02:34 +02:00
print libgimp: PDB procedure arguments are not order-based anymore (API-wise). 2023-10-16 21:56:37 +02:00
python plug-ins: GimpUi should be loaded by default in the Python console. 2023-10-03 13:46:24 +02:00
screenshot plug-ins: make parent window identifier for Wayland in Freedesktop portal. 2023-10-01 21:02:33 +02:00
script-fu libgimp: PDB procedure arguments are not order-based anymore (API-wise). 2023-10-16 21:56:37 +02:00
selection-to-path plug-ins: string fixes 2023-10-09 21:18:39 +00:00
twain libgimp, plug-ins, extensions: gimp_image_procedure_new2() renamed gimp_image_procedure_new(). 2023-10-01 21:02:34 +02:00
meson.build plug-ins: Remove dependency on GtkBuilder from metadata-editor 2023-05-10 13:25:12 -04:00