[gimp] plug-ins: remove now useless/ugly workaround.



commit 077f2d4e2559624ff4c81dfe559ba9e8cd569f65
Author: Jehan <jehan girinstud io>
Date:   Tue Apr 20 17:16:32 2021 +0200

    plug-ins: remove now useless/ugly workaround.
    
    See previous commit.

 plug-ins/python/foggify.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/plug-ins/python/foggify.py b/plug-ins/python/foggify.py
index 5e6a8ec2c1..34cfd4a65e 100755
--- a/plug-ins/python/foggify.py
+++ b/plug-ins/python/foggify.py
@@ -36,10 +36,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)
-        # Even though gimp_procedure_dialog_get_color_widget() is
-        # transfer none, somehow if I don't set it to a variable PyGObject
-        # frees it, then the plug-in fails at dialog.fill().
-        b = dialog.get_color_widget('color', True, GimpUi.ColorAreaType.FLAT)
+        dialog.get_color_widget('color', True, GimpUi.ColorAreaType.FLAT)
         dialog.fill(None)
         if not dialog.run():
             dialog.destroy()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]