app: canonicalize cage op names, and some indentation fixes

This commit is contained in:
Michael Natterer 2010-11-05 12:45:07 +01:00
parent eb3db78b06
commit e0dad1bf35
3 changed files with 17 additions and 18 deletions

View File

@ -59,7 +59,7 @@ gimp_operation_cage_coef_calc_class_init (GimpOperationCageCoefCalcClass *klass)
GeglOperationSourceClass *source_class = GEGL_OPERATION_SOURCE_CLASS (klass); GeglOperationSourceClass *source_class = GEGL_OPERATION_SOURCE_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_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->categories = "transform";
operation_class->description = "GIMP cage transform coefficient calc"; operation_class->description = "GIMP cage transform coefficient calc";
@ -85,7 +85,6 @@ gimp_operation_cage_coef_calc_class_init (GimpOperationCageCoefCalcClass *klass)
static void static void
gimp_operation_cage_coef_calc_init (GimpOperationCageCoefCalc *self) gimp_operation_cage_coef_calc_init (GimpOperationCageCoefCalc *self)
{ {
} }
static void static void

View File

@ -83,23 +83,22 @@ gimp_operation_cage_transform_class_init (GimpOperationCageTransformClass *klass
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass); GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationComposerClass *filter_class = GEGL_OPERATION_COMPOSER_CLASS (klass); GeglOperationComposerClass *filter_class = GEGL_OPERATION_COMPOSER_CLASS (klass);
object_class->get_property = gimp_operation_cage_transform_get_property; object_class->get_property = gimp_operation_cage_transform_get_property;
object_class->set_property = gimp_operation_cage_transform_set_property; object_class->set_property = gimp_operation_cage_transform_set_property;
object_class->finalize = gimp_operation_cage_transform_finalize; 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->name = "gimp:cage_transform"; operation_class->categories = "transform";
operation_class->categories = "transform"; operation_class->description = "GIMP cage reverse 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_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->get_cached_region = gimp_operation_cage_transform_get_cached_region;
operation_class->no_cache = FALSE; operation_class->no_cache = FALSE;
operation_class->get_bounding_box = gimp_operation_cage_transform_get_bounding_box; 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, g_object_class_install_property (object_class,
GIMP_OPERATION_CAGE_TRANSFORM_PROP_CONFIG, GIMP_OPERATION_CAGE_TRANSFORM_PROP_CONFIG,
@ -108,7 +107,8 @@ gimp_operation_cage_transform_class_init (GimpOperationCageTransformClass *klass
G_PARAM_READWRITE | G_PARAM_READWRITE |
G_PARAM_CONSTRUCT)); 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", g_param_spec_boolean ("fill_plain_color",
"Blocking render", "Blocking render",
"Fill the original position of the cage with a plain color", "Fill the original position of the cage with a plain color",

View File

@ -664,7 +664,7 @@ gimp_cage_tool_compute_coef (GimpCageTool *ct,
gegl = gegl_node_new (); gegl = gegl_node_new ();
input = gegl_node_new_child (gegl, input = gegl_node_new_child (gegl,
"operation", "gimp:cage_coef_calc", "operation", "gimp:cage-coef-calc",
"config", ct->config, "config", ct->config,
NULL); NULL);
@ -712,7 +712,7 @@ gimp_cage_tool_get_render_node (GimpCageTool *ct,
NULL); NULL);
cage = gegl_node_new_child (parent, cage = gegl_node_new_child (parent,
"operation", "gimp:cage_transform", "operation", "gimp:cage-transform",
"config", ct->config, "config", ct->config,
"fill_plain_color", options->fill_plain_color, "fill_plain_color", options->fill_plain_color,
NULL); NULL);