[gimp/gimp-2-10] app: migrate iscissorstool to new iterator api
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: migrate iscissorstool to new iterator api
- Date: Tue, 18 Sep 2018 10:37:30 +0000 (UTC)
commit 8d5c00a80d222d3bdc9c179e1aa666b8bd8134b5
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Sep 11 01:33:36 2018 +0200
app: migrate iscissorstool to new iterator api
(cherry picked from commit beb4ecb2383a49c3928ed4e5a1c4766af47f0951)
app/tools/gimpiscissorstool.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimpiscissorstool.c b/app/tools/gimpiscissorstool.c
index abfec2aaf6..67fb62f7ee 100644
--- a/app/tools/gimpiscissorstool.c
+++ b/app/tools/gimpiscissorstool.c
@@ -46,6 +46,7 @@
#include <stdlib.h>
+#define GEGL_ITERATOR2_API
#include <gegl.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
@@ -1914,12 +1915,12 @@ find_max_gradient (GimpIscissorsTool *iscissors,
iter = gegl_buffer_iterator_new (iscissors->gradient_map,
GEGL_RECTANGLE (x1, y1, x2 - x1, y2 - y1),
0, NULL,
- GEGL_ACCESS_READ, GEGL_ABYSS_NONE);
- roi = &iter->roi[0];
+ GEGL_ACCESS_READ, GEGL_ABYSS_NONE, 1);
+ roi = &iter->items[0].roi;
while (gegl_buffer_iterator_next (iter))
{
- guint8 *data = iter->data[0];
+ guint8 *data = iter->items[0].data;
gint endx = roi->x + roi->width;
gint endy = roi->y + roi->height;
gint i, j;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]