Gimp/plug-ins/script-fu
Jehan 57ca3f4807 libgimp, plug-ins: move gimp_pdb_run_procedure*() to gimp_procedure_run*().
The gimp_procedure_run() already existed, though it was with an ordered
GimpValueArray array of arguments. Its usage feels redundant to the series of
gimp_pdb_run_procedure*() functions (which is confusing), but
gimp_procedure_run() was actually a bit more generic, because it does not
necessarily calls GimpProcedure-s through the PDB! For instance, it can runs a
local GimpProcedure, such as the case of one procedure which would want to call
another procedure in the same plug-in, but without having to go through PDB. Of
course, for local code, you may as well run relevant functions directly, yet it
makes sense that if one of the redundant-looking function is removed, it should
be the more specific one. Also gimp_procedure_run() feels a lot simpler and
logical, API wise.

A main difference in usage is that now, plug-in developers have to first
explicitly look up the GimpPdbProcedure with gimp_pdb_lookup_procedure() when
they wish to call PDB procedures on the wire. This was done anyway in the
gimp_pdb_run_procedure*() code, now it's explicit (rather than calling by name
directly).

Concretely:

* gimp_pdb_run_procedure(), gimp_pdb_run_procedure_config() and
  gimp_pdb_run_procedure_valist() are removed.
* gimp_procedure_run() API is modified to use a variable args list instead of a
  GimpValueArray.
* gimp_procedure_run_config() and gimp_procedure_run_valist() are added.
* gimp_procedure_run_config() in particular will be the one used in bindings
  which don't have variable args support through a (rename-to
  gimp_procedure_run) annotation.
2023-10-18 17:11:20 +02:00
..
console plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects. 2023-10-01 20:52:01 +02:00
interpreter Remove autotools 2023-05-27 00:03:52 +02:00
libscriptfu libgimp, plug-ins: move gimp_pdb_run_procedure*() to gimp_procedure_run*(). 2023-10-18 17:11:20 +02:00
scripts Add a 'Allow resizing' toggle to Decor > Add Border 2023-10-13 13:17:11 -04:00
server libgimp, plug-ins: rename gimp_procedure_new2() as gimp_procedure_new() and… 2023-10-01 20:52:01 +02:00
test Fix scripts after changes to text PDB API 2023-10-13 09:38:21 -04:00
meson.build ScriptFu: #9755 Add test framework and tests for TS and PDB 2023-08-25 21:39:29 +00:00
script-fu-eval.c plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects. 2023-10-01 20:52:01 +02:00
script-fu-eval.h plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects. 2023-10-01 20:52:01 +02:00
script-fu-text-console.c plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects. 2023-10-01 20:52:01 +02:00
script-fu-text-console.h plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects. 2023-10-01 20:52:01 +02:00
script-fu.c libgimp, plug-ins: rename gimp_procedure_new2() as gimp_procedure_new() and… 2023-10-01 20:52:01 +02:00