plug-ins: use GimpUi.ProcedureDialog() instead of…

… GimpUi.ProcedureDialog.new()
The old way is still working and acceptable as far as I am concerned.
Just switching to the recommended (by upstream) syntax to show it works
as expected and as a good example of code.
This commit is contained in:
Jehan 2021-08-03 19:54:55 +02:00
parent 8176bd0828
commit 488e3c4a0a
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ def foggify(procedure, run_mode, image, n_drawables, drawables, args, data):
if run_mode == Gimp.RunMode.INTERACTIVE:
GimpUi.init('python-fu-foggify')
dialog = GimpUi.ProcedureDialog.new(procedure, config)
dialog = GimpUi.ProcedureDialog(procedure=procedure, config=config)
dialog.get_color_widget('color', True, GimpUi.ColorAreaType.FLAT)
dialog.fill(None)
if not dialog.run():