configure.ac, app: temporarily revert GEGL dependency to 0.4.22 for release

... and work around the missing gegl_buffer_share_storage() API in
gimp:replace.
This commit is contained in:
Ell
2020-02-22 22:23:12 +02:00
parent 696bb3fa21
commit 6bed57abe2
3 changed files with 35 additions and 26 deletions

View File

@ -23,6 +23,7 @@
#include <string.h> #include <string.h>
#include <gegl-plugin.h> #include <gegl-plugin.h>
#include <gegl-buffer-backend.h>
#include "../operations-types.h" #include "../operations-types.h"
@ -178,8 +179,14 @@ gimp_operation_replace_parent_process (GeglOperation *op,
input = gegl_operation_context_get_object (context, "input"); input = gegl_operation_context_get_object (context, "input");
aux = gegl_operation_context_get_object (context, "aux"); aux = gegl_operation_context_get_object (context, "aux");
if (input && aux && if (input && aux)
gegl_buffer_share_storage (GEGL_BUFFER (input), GEGL_BUFFER (aux))) {
GObject *buffer = aux;
while (buffer != input && GEGL_IS_BUFFER (buffer))
buffer = (GObject *) gegl_tile_handler_get_source (buffer);
if (buffer == input)
{ {
gint input_shift_x; gint input_shift_x;
gint input_shift_y; gint input_shift_y;
@ -207,13 +214,15 @@ gimp_operation_replace_parent_process (GeglOperation *op,
(gegl_rectangle_contains (input_abyss, result) && (gegl_rectangle_contains (input_abyss, result) &&
gegl_rectangle_contains (aux_abyss, result))) gegl_rectangle_contains (aux_abyss, result)))
{ {
gegl_operation_context_set_object (context, "output", input); gegl_operation_context_set_object (context,
"output", input);
return TRUE; return TRUE;
} }
} }
} }
} }
}
return GIMP_OPERATION_LAYER_MODE_CLASS (parent_class)->parent_process ( return GIMP_OPERATION_LAYER_MODE_CLASS (parent_class)->parent_process (
op, context, output_prop, result, level); op, context, output_prop, result, level);

View File

@ -518,7 +518,7 @@ sanity_check_gegl (void)
#define GEGL_REQUIRED_MAJOR 0 #define GEGL_REQUIRED_MAJOR 0
#define GEGL_REQUIRED_MINOR 4 #define GEGL_REQUIRED_MINOR 4
#define GEGL_REQUIRED_MICRO 23 #define GEGL_REQUIRED_MICRO 22
gegl_get_version (&gegl_major_version, gegl_get_version (&gegl_major_version,
&gegl_minor_version, &gegl_minor_version,

View File

@ -52,7 +52,7 @@ m4_define([fontconfig_required_version], [2.12.4])
m4_define([freetype2_required_version], [2.1.7]) m4_define([freetype2_required_version], [2.1.7])
m4_define([gdk_pixbuf_required_version], [2.30.8]) m4_define([gdk_pixbuf_required_version], [2.30.8])
m4_define([gegl_major_minor_version], [0.4]) m4_define([gegl_major_minor_version], [0.4])
m4_define([gegl_micro_version], [23]) m4_define([gegl_micro_version], [22])
m4_define([gegl_required_version], m4_define([gegl_required_version],
[gegl_major_minor_version.gegl_micro_version]) [gegl_major_minor_version.gegl_micro_version])
m4_define([gexiv2_required_version], [0.10.6]) m4_define([gexiv2_required_version], [0.10.6])