[gimp] plug-ins: use GimpUi.ProcedureDialog() instead of…
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gimp] plug-ins: use GimpUi.ProcedureDialog() instead of…
- Date: Tue,  3 Aug 2021 17:57:08 +0000 (UTC)
commit 488e3c4a0a8bfd27de0ac517ee84e87353ba46e9
Author: Jehan <jehan girinstud io>
Date:   Tue Aug 3 19:54:55 2021 +0200
    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.
 plug-ins/python/foggify.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plug-ins/python/foggify.py b/plug-ins/python/foggify.py
index 34cfd4a65e..15d7d48c37 100755
--- a/plug-ins/python/foggify.py
+++ b/plug-ins/python/foggify.py
@@ -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():
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]