[gimp] app: Don't reuse the GeglProcessor



commit b9b05e7d39cc9c623d3c89b0d8ed373a89c3b284
Author: Martin Nordholts <martinn src gnome org>
Date:   Fri Aug 7 21:54:54 2009 +0200

    app: Don't reuse the GeglProcessor
    
    Don't reuse the GeglProcessor as it can't handle dirty rects when
    painting in GIMP, and this makes it harder to make GEGL-wise progress
    in other parts of GIMP.

 app/core/gimpprojection-construct.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpprojection-construct.c b/app/core/gimpprojection-construct.c
index 990059a..e475550 100644
--- a/app/core/gimpprojection-construct.c
+++ b/app/core/gimpprojection-construct.c
@@ -158,6 +158,12 @@ gimp_projection_construct_gegl (GimpProjection *proj,
     gegl_processor_set_rectangle (proj->processor, &rect);
 
   while (gegl_processor_work (proj->processor, NULL));
+
+  /* FIXME: Reuse it when it can handle dirty rects when painting
+   * properly
+   */
+  g_object_unref (proj->processor);
+  proj->processor = NULL;
 }
 
 static void



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