[gimp/goat-invasion: 57/401] app: replace direct low-level GeglBuffer calls with utility.



commit 60e2c8bed2b3a9090465b21502e8dc9b9db511fd
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Thu Mar 15 20:13:57 2012 +0000

    app: replace direct low-level GeglBuffer calls with utility.
    
    gimp_drawable_real_update exists, so use it

 app/core/gimpdrawable.c   |    2 +-
 app/core/gimpprojection.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpdrawable.c b/app/core/gimpdrawable.c
index 79289f0..b1e59cd 100644
--- a/app/core/gimpdrawable.c
+++ b/app/core/gimpdrawable.c
@@ -767,7 +767,7 @@ gimp_drawable_real_update (GimpDrawable *drawable,
 
       if (buffer)
         {
-          gegl_tile_source_reinit (GEGL_TILE_SOURCE (buffer));
+          gimp_gegl_buffer_refetch_tiles (buffer);
           g_object_unref (buffer);
         }
     }
diff --git a/app/core/gimpprojection.c b/app/core/gimpprojection.c
index 57cf01a..f583254 100644
--- a/app/core/gimpprojection.c
+++ b/app/core/gimpprojection.c
@@ -810,7 +810,7 @@ gimp_projection_invalidate (GimpProjection *proj,
                          NULL);
 
           /* makes the buffer drop all GimpTiles */
-          gegl_tile_source_reinit ((void*)buffer);
+          gimp_gegl_buffer_refetch_tiles (buffer);
           g_object_unref (buffer);
         }
 



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