mirror of https://github.com/GNOME/gimp.git
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:
parent
8176bd0828
commit
488e3c4a0a
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue