[gimp] app: canonicalize cage op names, and some indentation fixes



commit e0dad1bf355f9260d27c773bfa8947e4ca23661d
Author: Michael Natterer <mitch gimp org>
Date:   Fri Nov 5 12:45:07 2010 +0100

    app: canonicalize cage op names, and some indentation fixes

 app/gegl/gimpoperationcagecoefcalc.c  |    3 +--
 app/gegl/gimpoperationcagetransform.c |   28 ++++++++++++++--------------
 app/tools/gimpcagetool.c              |    4 ++--
 3 files changed, 17 insertions(+), 18 deletions(-)
---
diff --git a/app/gegl/gimpoperationcagecoefcalc.c b/app/gegl/gimpoperationcagecoefcalc.c
index 2a3e172..55dae56 100644
--- a/app/gegl/gimpoperationcagecoefcalc.c
+++ b/app/gegl/gimpoperationcagecoefcalc.c
@@ -59,7 +59,7 @@ gimp_operation_cage_coef_calc_class_init (GimpOperationCageCoefCalcClass *klass)
   GeglOperationSourceClass *source_class    = GEGL_OPERATION_SOURCE_CLASS (klass);
   GeglOperationClass       *operation_class = GEGL_OPERATION_CLASS (klass);
 
-  operation_class->name               = "gimp:cage_coef_calc";
+  operation_class->name               = "gimp:cage-coef-calc";
   operation_class->categories         = "transform";
   operation_class->description        = "GIMP cage transform coefficient calc";
 
@@ -85,7 +85,6 @@ gimp_operation_cage_coef_calc_class_init (GimpOperationCageCoefCalcClass *klass)
 static void
 gimp_operation_cage_coef_calc_init (GimpOperationCageCoefCalc *self)
 {
-
 }
 
 static void
diff --git a/app/gegl/gimpoperationcagetransform.c b/app/gegl/gimpoperationcagetransform.c
index 188014f..61ac9bf 100644
--- a/app/gegl/gimpoperationcagetransform.c
+++ b/app/gegl/gimpoperationcagetransform.c
@@ -83,23 +83,22 @@ gimp_operation_cage_transform_class_init (GimpOperationCageTransformClass *klass
   GeglOperationClass         *operation_class = GEGL_OPERATION_CLASS (klass);
   GeglOperationComposerClass *filter_class    = GEGL_OPERATION_COMPOSER_CLASS (klass);
 
-  object_class->get_property          = gimp_operation_cage_transform_get_property;
-  object_class->set_property          = gimp_operation_cage_transform_set_property;
-  object_class->finalize              = gimp_operation_cage_transform_finalize;
+  object_class->get_property               = gimp_operation_cage_transform_get_property;
+  object_class->set_property               = gimp_operation_cage_transform_set_property;
+  object_class->finalize                   = gimp_operation_cage_transform_finalize;
 
-  /* FIXME: wrong categories and name, to appears in the gegl tool */
-  operation_class->name         = "gimp:cage_transform";
-  operation_class->categories   = "transform";
-  operation_class->description  = "GIMP cage reverse transform";
+  operation_class->name                    = "gimp:cage-transform";
+  operation_class->categories              = "transform";
+  operation_class->description             = "GIMP cage reverse transform";
 
-  operation_class->prepare      = gimp_operation_cage_transform_prepare;
+  operation_class->prepare                 = gimp_operation_cage_transform_prepare;
 
-  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;
+  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;
 
-  filter_class->process         = gimp_operation_cage_transform_process;
+  filter_class->process                    = gimp_operation_cage_transform_process;
 
   g_object_class_install_property (object_class,
                                    GIMP_OPERATION_CAGE_TRANSFORM_PROP_CONFIG,
@@ -108,7 +107,8 @@ gimp_operation_cage_transform_class_init (GimpOperationCageTransformClass *klass
                                                         G_PARAM_READWRITE |
                                                         G_PARAM_CONSTRUCT));
 
-  g_object_class_install_property (object_class, GIMP_OPERATION_CAGE_TRANSFORM_PROP_FILL,
+  g_object_class_install_property (object_class,
+                                   GIMP_OPERATION_CAGE_TRANSFORM_PROP_FILL,
                                    g_param_spec_boolean ("fill_plain_color",
                                                          "Blocking render",
                                                          "Fill the original position of the cage with a plain color",
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index f8929fc..1722d9d 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -664,7 +664,7 @@ gimp_cage_tool_compute_coef (GimpCageTool *ct,
   gegl = gegl_node_new ();
 
   input = gegl_node_new_child (gegl,
-                               "operation", "gimp:cage_coef_calc",
+                               "operation", "gimp:cage-coef-calc",
                                "config",    ct->config,
                                NULL);
 
@@ -712,7 +712,7 @@ gimp_cage_tool_get_render_node (GimpCageTool *ct,
                               NULL);
 
   cage = gegl_node_new_child (parent,
-                              "operation",        "gimp:cage_transform",
+                              "operation",        "gimp:cage-transform",
                               "config",           ct->config,
                               "fill_plain_color", options->fill_plain_color,
                               NULL);



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