plug-ins: port other Python plug-ins to new gimp_image_procedure_new().

SpyroGIMP will have to be ported to GimpProcedureDialog, or at least, it should
store its arguments. Currently they are resetted at each run.
This commit is contained in:
Jehan 2023-10-01 19:26:22 +02:00
parent accf3b1e64
commit 5a5a94d9b7
3 changed files with 31 additions and 41 deletions

View file

@ -92,13 +92,10 @@ def process_args(brush, font, gradient, palette, pattern):
return
def test_dialog(procedure, run_mode, image, n_drawables, drawables, args, data):
def test_dialog(procedure, run_mode, image, n_drawables, drawables, config, data):
'''
Just a standard shell for a plugin.
'''
config = procedure.create_config()
config.begin_run(image, run_mode, args)
if run_mode == Gimp.RunMode.INTERACTIVE:
GimpUi.init('python-fu-test-dialog')
Gegl.init(None)
@ -125,8 +122,6 @@ def test_dialog(procedure, run_mode, image, n_drawables, drawables, args, data):
Gimp.context_pop()
config.end_run(Gimp.PDBStatusType.SUCCESS)
return procedure.new_return_values(Gimp.PDBStatusType.SUCCESS, GLib.Error())