app: update GeglOps to new GEGL API

parent 17729bf6
......@@ -50,8 +50,10 @@ gimp_operation_addition_mode_class_init (GimpOperationAdditionModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:addition-mode";
operation_class->description = "GIMP addition mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:addition-mode",
"description", "GIMP addition mode operation",
NULL);
point_class->process = gimp_operation_addition_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_anti_erase_mode_class_init (GimpOperationAntiEraseModeClass *klas
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:anti-erase-mode";
operation_class->description = "GIMP anti erase mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:anti-erase-mode",
"description", "GIMP anti erase mode operation",
NULL);
point_class->process = gimp_operation_anti_erase_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_behind_mode_class_init (GimpOperationBehindModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:behind-mode";
operation_class->description = "GIMP behind mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:behind-mode",
"description", "GIMP behind mode operation",
NULL);
point_class->process = gimp_operation_behind_mode_process;
}
......
......@@ -56,9 +56,11 @@ gimp_operation_brightness_contrast_class_init (GimpOperationBrightnessContrastCl
object_class->set_property = gimp_operation_point_filter_set_property;
object_class->get_property = gimp_operation_point_filter_get_property;
operation_class->name = "gimp:brightness-contrast";
operation_class->categories = "color";
operation_class->description = "GIMP Brightness-Contrast operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:brightness-contrast",
"categories" , "color",
"description", "GIMP Brightness-Contrast operation",
NULL);
point_class->process = gimp_operation_brightness_contrast_process;
......
......@@ -50,8 +50,10 @@ gimp_operation_burn_mode_class_init (GimpOperationBurnModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:burn-mode";
operation_class->description = "GIMP burn mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:burn-mode",
"description", "GIMP burn mode operation",
NULL);
point_class->process = gimp_operation_burn_mode_process;
}
......
......@@ -61,9 +61,11 @@ 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->categories = "transform";
operation_class->description = _("Compute a set of coefficient buffer for the GIMP cage tool");
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:cage-coef-calc",
"categories" , "transform",
"description" , _("Compute a set of coefficient buffer for the GIMP cage tool"),
NULL);
operation_class->prepare = gimp_operation_cage_coef_calc_prepare;
operation_class->get_bounding_box = gimp_operation_cage_coef_calc_get_bounding_box;
......
......@@ -100,9 +100,11 @@ gimp_operation_cage_transform_class_init (GimpOperationCageTransformClass *klass
object_class->set_property = gimp_operation_cage_transform_set_property;
object_class->finalize = gimp_operation_cage_transform_finalize;
operation_class->name = "gimp:cage-transform";
operation_class->categories = "transform";
operation_class->description = _("Convert a set of coefficient buffer to a coordinate buffer for the GIMP cage tool");
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:cage-transform",
"categories" , "transform",
"description" , _("Convert a set of coefficient buffer to a coordinate buffer for the GIMP cage tool"),
NULL);
operation_class->prepare = gimp_operation_cage_transform_prepare;
......
......@@ -56,9 +56,11 @@ gimp_operation_color_balance_class_init (GimpOperationColorBalanceClass *klass)
object_class->set_property = gimp_operation_point_filter_set_property;
object_class->get_property = gimp_operation_point_filter_get_property;
operation_class->name = "gimp:color-balance";
operation_class->categories = "color";
operation_class->description = "GIMP Color Balance operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:color-balance",
"categories" , "color",
"description", "GIMP Color Balance operation",
NULL);
point_class->process = gimp_operation_color_balance_process;
......
......@@ -50,8 +50,10 @@ gimp_operation_color_erase_mode_class_init (GimpOperationColorEraseModeClass *kl
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:color-erase-mode";
operation_class->description = "GIMP color erase mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:color-erase-mode",
"description", "GIMP color erase mode operation",
NULL);
point_class->process = gimp_operation_color_erase_mode_process;
}
......
......@@ -55,9 +55,11 @@ gimp_operation_colorize_class_init (GimpOperationColorizeClass *klass)
object_class->set_property = gimp_operation_point_filter_set_property;
object_class->get_property = gimp_operation_point_filter_get_property;
operation_class->name = "gimp:colorize";
operation_class->categories = "color";
operation_class->description = "GIMP Colorize operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:colorize",
"categories" , "color",
"description", "GIMP Colorize operation",
NULL);
point_class->process = gimp_operation_colorize_process;
......
......@@ -50,8 +50,10 @@ gimp_operation_color_mode_class_init (GimpOperationColorModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:color-mode";
operation_class->description = "GIMP color mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:color-mode",
"description", "GIMP color mode operation",
NULL);
point_class->process = gimp_operation_color_mode_process;
}
......
......@@ -59,9 +59,11 @@ gimp_operation_curves_class_init (GimpOperationCurvesClass *klass)
object_class->set_property = gimp_operation_point_filter_set_property;
object_class->get_property = gimp_operation_point_filter_get_property;
operation_class->name = "gimp:curves";
operation_class->categories = "color";
operation_class->description = "GIMP Curves operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:curves",
"categories" , "color",
"description", "GIMP Curves operation",
NULL);
point_class->process = gimp_operation_curves_process;
......
......@@ -50,8 +50,10 @@ gimp_operation_darken_only_mode_class_init (GimpOperationDarkenOnlyModeClass *kl
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:darken-only-mode";
operation_class->description = "GIMP darken only mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:darken-only-mode",
"description", "GIMP darken only mode operation",
NULL);
point_class->process = gimp_operation_darken_only_mode_process;
}
......
......@@ -55,9 +55,11 @@ gimp_operation_desaturate_class_init (GimpOperationDesaturateClass *klass)
object_class->set_property = gimp_operation_point_filter_set_property;
object_class->get_property = gimp_operation_point_filter_get_property;
operation_class->name = "gimp:desaturate";
operation_class->categories = "color";
operation_class->description = "GIMP Desaturate operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:desaturate",
"categories" , "color",
"description", "GIMP Desaturate operation",
NULL);
point_class->process = gimp_operation_desaturate_process;
......
......@@ -50,8 +50,10 @@ gimp_operation_difference_mode_class_init (GimpOperationDifferenceModeClass *kla
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:difference-mode";
operation_class->description = "GIMP difference mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:difference-mode",
"description", "GIMP difference mode operation",
NULL);
point_class->process = gimp_operation_difference_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_dissolve_mode_class_init (GimpOperationDissolveModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:dissolve-mode";
operation_class->description = "GIMP dissolve mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:dissolve-mode",
"description", "GIMP dissolve mode operation",
NULL);
point_class->process = gimp_operation_dissolve_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_divide_mode_class_init (GimpOperationDivideModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:divide-mode";
operation_class->description = "GIMP divide mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:divide-mode",
"description", "GIMP divide mode operation",
NULL);
point_class->process = gimp_operation_divide_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_dodge_mode_class_init (GimpOperationDodgeModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:dodge-mode";
operation_class->description = "GIMP dodge mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:dodge-mode",
"description", "GIMP dodge mode operation",
NULL);
point_class->process = gimp_operation_dodge_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_erase_mode_class_init (GimpOperationEraseModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:erase-mode";
operation_class->description = "GIMP erase mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:erase-mode",
"description", "GIMP erase mode operation",
NULL);
point_class->process = gimp_operation_erase_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_grain_extract_mode_class_init (GimpOperationGrainExtractModeClass
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:grain-extract-mode";
operation_class->description = "GIMP grain extract mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:grain-extract-mode",
"description", "GIMP grain extract mode operation",
NULL);
point_class->process = gimp_operation_grain_extract_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_grain_merge_mode_class_init (GimpOperationGrainMergeModeClass *kl
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:grain-merge-mode";
operation_class->description = "GIMP grain merge mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:grain-merge-mode",
"description", "GIMP grain merge mode operation",
NULL);
point_class->process = gimp_operation_grain_merge_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_hardlight_mode_class_init (GimpOperationHardlightModeClass *klass
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:hardlight-mode";
operation_class->description = "GIMP hardlight mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:hardlight-mode",
"description", "GIMP hardlight mode operation",
NULL);
point_class->process = gimp_operation_hardlight_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_hue_mode_class_init (GimpOperationHueModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:hue-mode";
operation_class->description = "GIMP hue mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:hue-mode",
"description", "GIMP hue mode operation",
NULL);
point_class->process = gimp_operation_hue_mode_process;
}
......
......@@ -56,9 +56,11 @@ gimp_operation_hue_saturation_class_init (GimpOperationHueSaturationClass *klass
object_class->set_property = gimp_operation_point_filter_set_property;
object_class->get_property = gimp_operation_point_filter_get_property;
operation_class->name = "gimp:hue-saturation";
operation_class->categories = "color";
operation_class->description = "GIMP Hue-Saturation operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:hue-saturation",
"categories" , "color",
"description", "GIMP Hue-Saturation operation",
NULL);
point_class->process = gimp_operation_hue_saturation_process;
......
......@@ -56,9 +56,11 @@ gimp_operation_levels_class_init (GimpOperationLevelsClass *klass)
object_class->set_property = gimp_operation_point_filter_set_property;
object_class->get_property = gimp_operation_point_filter_get_property;
operation_class->name = "gimp:levels";
operation_class->categories = "color";
operation_class->description = "GIMP Levels operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:levels",
"categories" , "color",
"description", "GIMP Levels operation",
NULL);
point_class->process = gimp_operation_levels_process;
......
......@@ -50,8 +50,10 @@ gimp_operation_lighten_only_mode_class_init (GimpOperationLightenOnlyModeClass *
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:lighten-only-mode";
operation_class->description = "GIMP lighten only mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:lighten-only-mode",
"description", "GIMP lighten only mode operation",
NULL);
point_class->process = gimp_operation_lighten_only_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_multiply_mode_class_init (GimpOperationMultiplyModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:multiply-mode";
operation_class->description = "GIMP multiply mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:multiply-mode",
"description", "GIMP multiply mode operation",
NULL);
point_class->process = gimp_operation_multiply_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_overlay_mode_class_init (GimpOperationOverlayModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:overlay-mode";
operation_class->description = "GIMP overlay mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:overlay-mode",
"description", "GIMP overlay mode operation",
NULL);
point_class->process = gimp_operation_overlay_mode_process;
}
......
......@@ -112,9 +112,11 @@ gimp_operation_point_layer_mode_class_init (GimpOperationPointLayerModeClass *kl
object_class->set_property = gimp_operation_point_layer_mode_set_property;
object_class->get_property = gimp_operation_point_layer_mode_get_property;
operation_class->name = "gimp:point-layer-mode";
operation_class->description = "GIMP point layer mode operation";
operation_class->categories = "compositors";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:point-layer-mode",
"description", "GIMP point layer mode operation",
"categories" , "compositors",
NULL);
operation_class->prepare = gimp_operation_point_layer_mode_prepare;
......
......@@ -56,9 +56,11 @@ gimp_operation_posterize_class_init (GimpOperationPosterizeClass *klass)
object_class->set_property = gimp_operation_point_filter_set_property;
object_class->get_property = gimp_operation_point_filter_get_property;
operation_class->name = "gimp:posterize";
operation_class->categories = "color";
operation_class->description = "GIMP Posterize operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:posterize",
"categories" , "color",
"description", "GIMP Posterize operation",
NULL);
point_class->process = gimp_operation_posterize_process;
......
......@@ -50,8 +50,10 @@ gimp_operation_replace_mode_class_init (GimpOperationReplaceModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:replace-mode";
operation_class->description = "GIMP replace mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:replace-mode",
"description", "GIMP replace mode operation",
NULL);
point_class->process = gimp_operation_replace_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_saturation_mode_class_init (GimpOperationSaturationModeClass *kla
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:saturation-mode";
operation_class->description = "GIMP saturation mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:saturation-mode",
"description", "GIMP saturation mode operation",
NULL);
point_class->process = gimp_operation_saturation_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_screen_mode_class_init (GimpOperationScreenModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:screen-mode";
operation_class->description = "GIMP screen mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:screen-mode",
"description", "GIMP screen mode operation",
NULL);
point_class->process = gimp_operation_screen_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_softlight_mode_class_init (GimpOperationSoftlightModeClass *klass
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:softlight-mode";
operation_class->description = "GIMP softlight mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:softlight-mode",
"description", "GIMP softlight mode operation",
NULL);
point_class->process = gimp_operation_softlight_mode_process;
}
......
......@@ -50,8 +50,10 @@ gimp_operation_subtract_mode_class_init (GimpOperationSubtractModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:subtract-mode";
operation_class->description = "GIMP subtract mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:subtract-mode",
"description", "GIMP subtract mode operation",
NULL);
point_class->process = gimp_operation_subtract_mode_process;
}
......
......@@ -55,9 +55,11 @@ gimp_operation_threshold_class_init (GimpOperationThresholdClass *klass)
object_class->set_property = gimp_operation_point_filter_set_property;
object_class->get_property = gimp_operation_point_filter_get_property;
operation_class->name = "gimp:threshold";
operation_class->categories = "color";
operation_class->description = "GIMP Threshold operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:threshold",
"categories" , "color",
"description", "GIMP Threshold operation",
NULL);
point_class->process = gimp_operation_threshold_process;
......
......@@ -95,9 +95,11 @@ gimp_operation_tile_sink_class_init (GimpOperationTileSinkClass *klass)
object_class->set_property = gimp_operation_tile_sink_set_property;
object_class->get_property = gimp_operation_tile_sink_get_property;
operation_class->name = "gimp:tilemanager-sink";
operation_class->categories = "output";
operation_class->description = "GIMP TileManager sink";
gegl_operation_class_set_keys (operation_class,
"name", "gimp:tilemanager-sink",
"categories", "output",
"description", "GIMP TileManager sink",
NULL);
sink_class->process = gimp_operation_tile_sink_process;
sink_class->needs_full = FALSE;
......
......@@ -78,9 +78,12 @@ gimp_operation_tile_source_class_init (GimpOperationTileSourceClass *klass)
object_class->set_property = gimp_operation_tile_source_set_property;
object_class->get_property = gimp_operation_tile_source_get_property;
operation_class->name = "gimp:tilemanager-source";
operation_class->categories = "input";
operation_class->description = "GIMP TileManager source";
gegl_operation_class_set_keys (operation_class,
"name" "gimp:tilemanager-source",
"categories" "input",
"description" "GIMP TileManager source",
NULL);
operation_class->prepare = gimp_operation_tile_source_prepare;
operation_class->get_bounding_box = gimp_operation_tile_source_get_bounding_box;
operation_class->get_cached_region = NULL; /* the default source is
......
......@@ -50,8 +50,10 @@ gimp_operation_value_mode_class_init (GimpOperationValueModeClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
operation_class->name = "gimp:value-mode";
operation_class->description = "GIMP value mode operation";
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:value-mode",
"description", "GIMP value mode operation",
NULL);
point_class->process = gimp_operation_value_mode_process;
}
......
......@@ -185,7 +185,7 @@ gimp_gegl_tool_map (GimpImageMapTool *image_map_tool)
if (! tool->config)
return;
pspecs = gegl_list_properties (tool->operation, &n_pspecs);
pspecs = gegl_operation_list_properties (tool->operation, &n_pspecs);
for (i = 0; i < n_pspecs; i++)
{
......@@ -316,7 +316,8 @@ gimp_get_subtype_classes (GType type,
ops = g_type_children (type, &n_ops);
if (! gimp_gegl_tool_operation_blacklisted (klass->name,
klass->categories))
gegl_operation_class_get_key (klass,
"categories")))
classes = g_list_prepend (classes, klass);
for (i = 0; i < n_ops; i++)
......@@ -551,7 +552,7 @@ gimp_gegl_tool_config_class_init (GObjectClass *klass,
klass->set_property = gimp_gegl_tool_config_set_property;
klass->get_property = gimp_gegl_tool_config_get_property;
pspecs = gegl_list_properties (operation, &n_pspecs);
pspecs = gegl_operation_list_properties (operation, &n_pspecs);
for (i = 0; i < n_pspecs; i++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment