[gimp] app: replace use of deprecated dont-cache/no_cache with cache-policy



commit 7489f0aeceb09ea73fd18a71df4b7e6b6718e2eb
Author: Ell <ell_se yahoo com>
Date:   Thu Feb 21 13:07:34 2019 -0500

    app: replace use of deprecated dont-cache/no_cache with cache-policy
    
    Replace the use of the deprecated GeglNode::dont-cache property,
    and GeglOperationClass::no_cache field, with GeglNode::cache-policy
    and GeglOperationClass::cache_policy, respectively.
    
    See commit gegl@7f24430cda0d8c3eff311868823d445edc2a4e12.

 app/operations/gimpoperationbuffersourcevalidate.c | 2 +-
 app/operations/gimpoperationcagecoefcalc.c         | 2 +-
 app/operations/gimpoperationcagetransform.c        | 1 -
 app/paint/gimpperspectiveclone.c                   | 2 +-
 4 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/app/operations/gimpoperationbuffersourcevalidate.c 
b/app/operations/gimpoperationbuffersourcevalidate.c
index f494478be2..e9e257bae3 100644
--- a/app/operations/gimpoperationbuffersourcevalidate.c
+++ b/app/operations/gimpoperationbuffersourcevalidate.c
@@ -83,7 +83,7 @@ gimp_operation_buffer_source_validate_class_init (GimpOperationBufferSourceValid
   operation_class->process          = gimp_operation_buffer_source_validate_process;
 
   operation_class->threaded         = FALSE;
-  operation_class->no_cache         = TRUE;
+  operation_class->cache_policy     = GEGL_CACHE_POLICY_NEVER;
 
   gegl_operation_class_set_keys (operation_class,
                                  "name",        "gimp:buffer-source-validate",
diff --git a/app/operations/gimpoperationcagecoefcalc.c b/app/operations/gimpoperationcagecoefcalc.c
index 9f7ab7f9f5..ba8cd3f5e4 100644
--- a/app/operations/gimpoperationcagecoefcalc.c
+++ b/app/operations/gimpoperationcagecoefcalc.c
@@ -71,7 +71,7 @@ gimp_operation_cage_coef_calc_class_init (GimpOperationCageCoefCalcClass *klass)
 
   operation_class->prepare            = gimp_operation_cage_coef_calc_prepare;
   operation_class->get_bounding_box   = gimp_operation_cage_coef_calc_get_bounding_box;
-  operation_class->no_cache           = FALSE;
+  operation_class->cache_policy       = GEGL_CACHE_POLICY_ALWAYS;
   operation_class->get_cached_region  = NULL;
 
   source_class->process               = gimp_operation_cage_coef_calc_process;
diff --git a/app/operations/gimpoperationcagetransform.c b/app/operations/gimpoperationcagetransform.c
index 7ef8ef63d5..46bc4cb138 100644
--- a/app/operations/gimpoperationcagetransform.c
+++ b/app/operations/gimpoperationcagetransform.c
@@ -108,7 +108,6 @@ gimp_operation_cage_transform_class_init (GimpOperationCageTransformClass *klass
 
   operation_class->get_required_for_output = gimp_operation_cage_transform_get_required_for_output;
   operation_class->get_cached_region       = gimp_operation_cage_transform_get_cached_region;
-  operation_class->no_cache                = FALSE;
   operation_class->get_bounding_box        = gimp_operation_cage_transform_get_bounding_box;
   /* XXX Temporarily disable multi-threading on this operation because
    * it is much faster when single-threaded. See bug 787663.
diff --git a/app/paint/gimpperspectiveclone.c b/app/paint/gimpperspectiveclone.c
index 948ef863de..a52d77a043 100644
--- a/app/paint/gimpperspectiveclone.c
+++ b/app/paint/gimpperspectiveclone.c
@@ -171,7 +171,7 @@ gimp_perspective_clone_paint (GimpPaintCore    *paint_core,
           clone->node = gegl_node_new ();
 
           g_object_set (clone->node,
-                        "dont-cache", TRUE,
+                        "cache-policy", GEGL_CACHE_POLICY_NEVER,
                         NULL);
 
           switch (clone_options->clone_type)


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