[gimp] app: adapt to API changes in gegl_buffer_iterator



commit bfb3cd60d1595e45ed703fece9cf403d85340fd9
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Mon Mar 26 18:30:30 2012 +0100

    app: adapt to API changes in gegl_buffer_iterator

 app/core/gimpchannel-combine.c |    7 ++++---
 app/core/gimpchannel.c         |    4 ++--
 app/core/gimppalette-import.c  |    4 ++--
 app/core/gimpscanconvert.c     |    2 +-
 app/text/gimptextlayer.c       |    2 +-
 5 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/app/core/gimpchannel-combine.c b/app/core/gimpchannel-combine.c
index b0fd716..643971b 100644
--- a/app/core/gimpchannel-combine.c
+++ b/app/core/gimpchannel-combine.c
@@ -238,7 +238,8 @@ gimp_channel_combine_ellipse_rect (GimpChannel    *mask,
 
   iter = gegl_buffer_iterator_new (buffer,
                                    GIMP_GEGL_RECT (x0, y0, width, height), 0,
-                                   babl_format ("Y u8"), GEGL_BUFFER_READWRITE);
+                                   babl_format ("Y u8"), GEGL_BUFFER_READWRITE,
+                                   GEGL_ABYSS_NONE);
   roi = &iter->roi[0];
   bpp = 1;
 
@@ -464,13 +465,13 @@ gimp_channel_combine_mask (GimpChannel    *mask,
   rect.height = h;
 
   iter = gegl_buffer_iterator_new (mask_buffer, &rect, 0, babl_format ("Y u8"),
-                                   GEGL_BUFFER_READWRITE);
+                                   GEGL_BUFFER_READWRITE, GEGL_ABYSS_NONE);
 
   rect.x -= off_x;
   rect.y -= off_y;
 
   gegl_buffer_iterator_add (iter, add_on_buffer, &rect, 0, babl_format ("Y u8"),
-                            GEGL_BUFFER_READ);
+                            GEGL_BUFFER_READ, GEGL_ABYSS_NONE);
 
   switch (op)
     {
diff --git a/app/core/gimpchannel.c b/app/core/gimpchannel.c
index 3b1f43d..5378526 100644
--- a/app/core/gimpchannel.c
+++ b/app/core/gimpchannel.c
@@ -1083,7 +1083,7 @@ gimp_channel_real_bounds (GimpChannel *channel,
   buffer = gimp_drawable_get_buffer (GIMP_DRAWABLE (channel));
 
   iter = gegl_buffer_iterator_new (buffer, NULL, 0, babl_format ("Y u8"),
-                                   GEGL_BUFFER_READ);
+                                   GEGL_BUFFER_READ, GEGL_ABYSS_NONE);
   roi = &iter->roi[0];
 
   while (gegl_buffer_iterator_next (iter))
@@ -1181,7 +1181,7 @@ gimp_channel_real_is_empty (GimpChannel *channel)
   buffer = gimp_drawable_get_buffer (GIMP_DRAWABLE (channel));
 
   iter = gegl_buffer_iterator_new (buffer, NULL, 0, babl_format ("Y u8"),
-                                   GEGL_BUFFER_READ);
+                                   GEGL_BUFFER_READ, GEGL_ABYSS_NONE);
 
   while (gegl_buffer_iterator_next (iter))
     {
diff --git a/app/core/gimppalette-import.c b/app/core/gimppalette-import.c
index 538fb89..647b271 100644
--- a/app/core/gimppalette-import.c
+++ b/app/core/gimppalette-import.c
@@ -290,7 +290,7 @@ gimp_palette_import_extract (GimpImage     *image,
   format = gimp_pickable_get_format (pickable);
 
   iter = gegl_buffer_iterator_new (buffer, &rect, 0, format,
-                                   GEGL_BUFFER_READ);
+                                   GEGL_BUFFER_READ, GEGL_ABYSS_NONE);
   roi = &iter->roi[0];
   bpp = babl_format_get_bytes_per_pixel (format);
 
@@ -308,7 +308,7 @@ gimp_palette_import_extract (GimpImage     *image,
 
       gegl_buffer_iterator_add (iter, buffer, &rect, 0,
                                 gimp_drawable_get_format (mask),
-                                GEGL_BUFFER_READ);
+                                GEGL_BUFFER_READ, GEGL_ABYSS_NONE);
       mask_roi = &iter->roi[1];
       mask_bpp = babl_format_get_bytes_per_pixel (format);
     }
diff --git a/app/core/gimpscanconvert.c b/app/core/gimpscanconvert.c
index a84a7b2..7ff042e 100644
--- a/app/core/gimpscanconvert.c
+++ b/app/core/gimpscanconvert.c
@@ -482,7 +482,7 @@ gimp_scan_convert_render_full (GimpScanConvert *sc,
   bpp    = babl_format_get_bytes_per_pixel (format);
 
   iter = gegl_buffer_iterator_new (buffer, NULL, 0, format,
-                                   GEGL_BUFFER_WRITE);
+                                   GEGL_BUFFER_WRITE, GEGL_ABYSS_NONE);
   roi = &iter->roi[0];
 
   while (gegl_buffer_iterator_next (iter))
diff --git a/app/text/gimptextlayer.c b/app/text/gimptextlayer.c
index fe25884..b185792 100644
--- a/app/text/gimptextlayer.c
+++ b/app/text/gimptextlayer.c
@@ -686,7 +686,7 @@ gimp_text_layer_render_layout (GimpTextLayer  *layer,
   bytes  = babl_format_get_bytes_per_pixel (format);
 
   iter = gegl_buffer_iterator_new (buffer, NULL, 0, format,
-                                   GEGL_BUFFER_WRITE);
+                                   GEGL_BUFFER_WRITE, GEGL_ABYSS_NONE);
 
   while (gegl_buffer_iterator_next (iter))
     {



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