[gimp] app: migrate iscissorstool to new iterator api
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: migrate iscissorstool to new iterator api
- Date: Wed, 12 Sep 2018 11:54:35 +0000 (UTC)
commit beb4ecb2383a49c3928ed4e5a1c4766af47f0951
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Sep 11 01:33:36 2018 +0200
app: migrate iscissorstool to new iterator api
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]