plug-ins: port goat-exercise to gimp_image_procedure_new2()

Not yet porting to GimpProcedureDialog because there's no settings to import/export,
so it would add several unnecessary buttons.
This commit is contained in:
Alx Sa 2023-07-27 18:37:23 +00:00 committed by Jehan
parent 6dc21425c0
commit 22cb6b3bb6
1 changed files with 5 additions and 5 deletions

View File

@ -66,7 +66,7 @@ static GimpValueArray * goat_run (GimpProcedure *procedure,
GimpImage *image,
gint n_drawables,
GimpDrawable **drawables,
const GimpValueArray *args,
GimpProcedureConfig *config,
gpointer run_data);
@ -103,9 +103,9 @@ goat_create_procedure (GimpPlugIn *plug_in,
if (! strcmp (name, PLUG_IN_PROC))
{
procedure = gimp_image_procedure_new (plug_in, name,
GIMP_PDB_PROC_TYPE_PLUGIN,
goat_run, NULL, NULL);
procedure = gimp_image_procedure_new2 (plug_in, name,
GIMP_PDB_PROC_TYPE_PLUGIN,
goat_run, NULL, NULL);
gimp_procedure_set_image_types (procedure, "*");
gimp_procedure_set_sensitivity_mask (procedure,
@ -135,7 +135,7 @@ goat_run (GimpProcedure *procedure,
GimpImage *image,
gint n_drawables,
GimpDrawable **drawables,
const GimpValueArray *args,
GimpProcedureConfig *config,
gpointer run_data)
{
GimpDrawable *drawable;