libgimp, plug-ins: Script-fu scripts now use gimp_procedure_new2() too.

Also in gimp_procedure_config_begin_run(), make sure we sync the arguments with
the config object first thing, even in interactive and with-last-vals case
(where the args may be further overridden). This was especially important for
Script-fu scripts as the image and drawable were not provided separately, so we
need to make sure that the config file has the right values.
This commit is contained in:
Jehan
2023-06-16 17:36:54 +02:00
parent 5d3112a2f1
commit a2acf24ecb
5 changed files with 81 additions and 52 deletions

View File

@ -39,11 +39,15 @@ void script_fu_script_reset (SFScript *scrip
gboolean reset_ids);
gint script_fu_script_collect_standard_args (SFScript *script,
const GimpValueArray *args);
GParamSpec **pspecs,
guint n_pspecs,
GimpProcedureConfig *config);
gchar * script_fu_script_get_command (SFScript *script);
gchar * script_fu_script_get_command_from_params (SFScript *script,
const GimpValueArray *args);
GParamSpec **pspecs,
guint n_pspecs,
GimpProcedureConfig *config);
gchar * script_fu_script_get_command_for_image_proc (
SFScript *script,
GimpImage *image,