[gimp/metadata-browser] app: update GeglOps to new GEGL API
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: update GeglOps to new GEGL API
- Date: Wed, 12 Sep 2012 23:00:58 +0000 (UTC)
commit e758976e0253f46126b5a12ba6e2eb017909e0b8
Author: Ãyvind KolÃs <pippin gimp org>
Date: Thu Mar 29 19:22:22 2012 +0100
app: update GeglOps to new GEGL API
app/gegl/gimpoperationadditionmode.c | 6 ++++--
app/gegl/gimpoperationantierasemode.c | 6 ++++--
app/gegl/gimpoperationbehindmode.c | 6 ++++--
app/gegl/gimpoperationbrightnesscontrast.c | 8 +++++---
app/gegl/gimpoperationburnmode.c | 6 ++++--
app/gegl/gimpoperationcagecoefcalc.c | 8 +++++---
app/gegl/gimpoperationcagetransform.c | 8 +++++---
app/gegl/gimpoperationcolorbalance.c | 8 +++++---
app/gegl/gimpoperationcolorerasemode.c | 6 ++++--
app/gegl/gimpoperationcolorize.c | 8 +++++---
app/gegl/gimpoperationcolormode.c | 6 ++++--
app/gegl/gimpoperationcurves.c | 8 +++++---
app/gegl/gimpoperationdarkenonlymode.c | 6 ++++--
app/gegl/gimpoperationdesaturate.c | 8 +++++---
app/gegl/gimpoperationdifferencemode.c | 6 ++++--
app/gegl/gimpoperationdissolvemode.c | 6 ++++--
app/gegl/gimpoperationdividemode.c | 6 ++++--
app/gegl/gimpoperationdodgemode.c | 6 ++++--
app/gegl/gimpoperationerasemode.c | 6 ++++--
app/gegl/gimpoperationgrainextractmode.c | 6 ++++--
app/gegl/gimpoperationgrainmergemode.c | 6 ++++--
app/gegl/gimpoperationhardlightmode.c | 6 ++++--
app/gegl/gimpoperationhuemode.c | 6 ++++--
app/gegl/gimpoperationhuesaturation.c | 8 +++++---
app/gegl/gimpoperationlevels.c | 8 +++++---
app/gegl/gimpoperationlightenonlymode.c | 6 ++++--
app/gegl/gimpoperationmultiplymode.c | 6 ++++--
app/gegl/gimpoperationoverlaymode.c | 6 ++++--
app/gegl/gimpoperationpointlayermode.c | 8 +++++---
app/gegl/gimpoperationposterize.c | 8 +++++---
app/gegl/gimpoperationreplacemode.c | 6 ++++--
app/gegl/gimpoperationsaturationmode.c | 6 ++++--
app/gegl/gimpoperationscreenmode.c | 6 ++++--
app/gegl/gimpoperationsoftlightmode.c | 6 ++++--
app/gegl/gimpoperationsubtractmode.c | 6 ++++--
app/gegl/gimpoperationthreshold.c | 8 +++++---
app/gegl/gimpoperationtilesink.c | 8 +++++---
app/gegl/gimpoperationtilesource.c | 9 ++++++---
app/gegl/gimpoperationvaluemode.c | 6 ++++--
app/tools/gimpgegltool.c | 7 ++++---
40 files changed, 175 insertions(+), 95 deletions(-)
---
diff --git a/app/gegl/gimpoperationadditionmode.c b/app/gegl/gimpoperationadditionmode.c
index a3ded89..a403564 100644
--- a/app/gegl/gimpoperationadditionmode.c
+++ b/app/gegl/gimpoperationadditionmode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationantierasemode.c b/app/gegl/gimpoperationantierasemode.c
index 8c51e33..23e5302 100644
--- a/app/gegl/gimpoperationantierasemode.c
+++ b/app/gegl/gimpoperationantierasemode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationbehindmode.c b/app/gegl/gimpoperationbehindmode.c
index e028d99..266c491 100644
--- a/app/gegl/gimpoperationbehindmode.c
+++ b/app/gegl/gimpoperationbehindmode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationbrightnesscontrast.c b/app/gegl/gimpoperationbrightnesscontrast.c
index 2cde690..cba57b5 100644
--- a/app/gegl/gimpoperationbrightnesscontrast.c
+++ b/app/gegl/gimpoperationbrightnesscontrast.c
@@ -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;
diff --git a/app/gegl/gimpoperationburnmode.c b/app/gegl/gimpoperationburnmode.c
index f585b8d..625e547 100644
--- a/app/gegl/gimpoperationburnmode.c
+++ b/app/gegl/gimpoperationburnmode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationcagecoefcalc.c b/app/gegl/gimpoperationcagecoefcalc.c
index 7bff253..1370103 100644
--- a/app/gegl/gimpoperationcagecoefcalc.c
+++ b/app/gegl/gimpoperationcagecoefcalc.c
@@ -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;
diff --git a/app/gegl/gimpoperationcagetransform.c b/app/gegl/gimpoperationcagetransform.c
index fc41096..abdfa4e 100644
--- a/app/gegl/gimpoperationcagetransform.c
+++ b/app/gegl/gimpoperationcagetransform.c
@@ -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;
diff --git a/app/gegl/gimpoperationcolorbalance.c b/app/gegl/gimpoperationcolorbalance.c
index 1f3d414..0cbfda9 100644
--- a/app/gegl/gimpoperationcolorbalance.c
+++ b/app/gegl/gimpoperationcolorbalance.c
@@ -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;
diff --git a/app/gegl/gimpoperationcolorerasemode.c b/app/gegl/gimpoperationcolorerasemode.c
index ddb743b..0efc05f 100644
--- a/app/gegl/gimpoperationcolorerasemode.c
+++ b/app/gegl/gimpoperationcolorerasemode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationcolorize.c b/app/gegl/gimpoperationcolorize.c
index ac73286..c748096 100644
--- a/app/gegl/gimpoperationcolorize.c
+++ b/app/gegl/gimpoperationcolorize.c
@@ -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;
diff --git a/app/gegl/gimpoperationcolormode.c b/app/gegl/gimpoperationcolormode.c
index 3f4dc0b..2989995 100644
--- a/app/gegl/gimpoperationcolormode.c
+++ b/app/gegl/gimpoperationcolormode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationcurves.c b/app/gegl/gimpoperationcurves.c
index 07560ad..ea8c48c 100644
--- a/app/gegl/gimpoperationcurves.c
+++ b/app/gegl/gimpoperationcurves.c
@@ -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;
diff --git a/app/gegl/gimpoperationdarkenonlymode.c b/app/gegl/gimpoperationdarkenonlymode.c
index 5aa17c7..657903e 100644
--- a/app/gegl/gimpoperationdarkenonlymode.c
+++ b/app/gegl/gimpoperationdarkenonlymode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationdesaturate.c b/app/gegl/gimpoperationdesaturate.c
index fe33cfc..5abc4ae 100644
--- a/app/gegl/gimpoperationdesaturate.c
+++ b/app/gegl/gimpoperationdesaturate.c
@@ -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;
diff --git a/app/gegl/gimpoperationdifferencemode.c b/app/gegl/gimpoperationdifferencemode.c
index e4f42c4..cb9be87 100644
--- a/app/gegl/gimpoperationdifferencemode.c
+++ b/app/gegl/gimpoperationdifferencemode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationdissolvemode.c b/app/gegl/gimpoperationdissolvemode.c
index 1d78d4c..857c2a4 100644
--- a/app/gegl/gimpoperationdissolvemode.c
+++ b/app/gegl/gimpoperationdissolvemode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationdividemode.c b/app/gegl/gimpoperationdividemode.c
index 1c7f0e4..818d02c 100644
--- a/app/gegl/gimpoperationdividemode.c
+++ b/app/gegl/gimpoperationdividemode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationdodgemode.c b/app/gegl/gimpoperationdodgemode.c
index b500be0..f3eabdc 100644
--- a/app/gegl/gimpoperationdodgemode.c
+++ b/app/gegl/gimpoperationdodgemode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationerasemode.c b/app/gegl/gimpoperationerasemode.c
index b2763b8..6900dda 100644
--- a/app/gegl/gimpoperationerasemode.c
+++ b/app/gegl/gimpoperationerasemode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationgrainextractmode.c b/app/gegl/gimpoperationgrainextractmode.c
index f5e3be7..db0b002 100644
--- a/app/gegl/gimpoperationgrainextractmode.c
+++ b/app/gegl/gimpoperationgrainextractmode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationgrainmergemode.c b/app/gegl/gimpoperationgrainmergemode.c
index 1fd443e..b88ddd4 100644
--- a/app/gegl/gimpoperationgrainmergemode.c
+++ b/app/gegl/gimpoperationgrainmergemode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationhardlightmode.c b/app/gegl/gimpoperationhardlightmode.c
index c1e1b18..0e647e8 100644
--- a/app/gegl/gimpoperationhardlightmode.c
+++ b/app/gegl/gimpoperationhardlightmode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationhuemode.c b/app/gegl/gimpoperationhuemode.c
index b707375..c7e48ca 100644
--- a/app/gegl/gimpoperationhuemode.c
+++ b/app/gegl/gimpoperationhuemode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationhuesaturation.c b/app/gegl/gimpoperationhuesaturation.c
index a563281..12d73f5 100644
--- a/app/gegl/gimpoperationhuesaturation.c
+++ b/app/gegl/gimpoperationhuesaturation.c
@@ -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;
diff --git a/app/gegl/gimpoperationlevels.c b/app/gegl/gimpoperationlevels.c
index efc5954..91e0b16 100644
--- a/app/gegl/gimpoperationlevels.c
+++ b/app/gegl/gimpoperationlevels.c
@@ -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;
diff --git a/app/gegl/gimpoperationlightenonlymode.c b/app/gegl/gimpoperationlightenonlymode.c
index 9ba8245..5915799 100644
--- a/app/gegl/gimpoperationlightenonlymode.c
+++ b/app/gegl/gimpoperationlightenonlymode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationmultiplymode.c b/app/gegl/gimpoperationmultiplymode.c
index cc4d712..7063ee7 100644
--- a/app/gegl/gimpoperationmultiplymode.c
+++ b/app/gegl/gimpoperationmultiplymode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationoverlaymode.c b/app/gegl/gimpoperationoverlaymode.c
index e90e3df..e762e7f 100644
--- a/app/gegl/gimpoperationoverlaymode.c
+++ b/app/gegl/gimpoperationoverlaymode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationpointlayermode.c b/app/gegl/gimpoperationpointlayermode.c
index 24f8dc1..ab0e3a9 100644
--- a/app/gegl/gimpoperationpointlayermode.c
+++ b/app/gegl/gimpoperationpointlayermode.c
@@ -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;
diff --git a/app/gegl/gimpoperationposterize.c b/app/gegl/gimpoperationposterize.c
index 0c0062e..1ef9b7e 100644
--- a/app/gegl/gimpoperationposterize.c
+++ b/app/gegl/gimpoperationposterize.c
@@ -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;
diff --git a/app/gegl/gimpoperationreplacemode.c b/app/gegl/gimpoperationreplacemode.c
index ba77b2a..26e4a97 100644
--- a/app/gegl/gimpoperationreplacemode.c
+++ b/app/gegl/gimpoperationreplacemode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationsaturationmode.c b/app/gegl/gimpoperationsaturationmode.c
index 34c8774..739d592 100644
--- a/app/gegl/gimpoperationsaturationmode.c
+++ b/app/gegl/gimpoperationsaturationmode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationscreenmode.c b/app/gegl/gimpoperationscreenmode.c
index 8918738..55ab394 100644
--- a/app/gegl/gimpoperationscreenmode.c
+++ b/app/gegl/gimpoperationscreenmode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationsoftlightmode.c b/app/gegl/gimpoperationsoftlightmode.c
index dfd024b..d5eeb86 100644
--- a/app/gegl/gimpoperationsoftlightmode.c
+++ b/app/gegl/gimpoperationsoftlightmode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationsubtractmode.c b/app/gegl/gimpoperationsubtractmode.c
index 00d96bd..1cc60ed 100644
--- a/app/gegl/gimpoperationsubtractmode.c
+++ b/app/gegl/gimpoperationsubtractmode.c
@@ -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;
}
diff --git a/app/gegl/gimpoperationthreshold.c b/app/gegl/gimpoperationthreshold.c
index ade5737..c23d4c0 100644
--- a/app/gegl/gimpoperationthreshold.c
+++ b/app/gegl/gimpoperationthreshold.c
@@ -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;
diff --git a/app/gegl/gimpoperationtilesink.c b/app/gegl/gimpoperationtilesink.c
index 2303764..b3cdba9 100644
--- a/app/gegl/gimpoperationtilesink.c
+++ b/app/gegl/gimpoperationtilesink.c
@@ -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;
diff --git a/app/gegl/gimpoperationtilesource.c b/app/gegl/gimpoperationtilesource.c
index d99baca..5ca9c18 100644
--- a/app/gegl/gimpoperationtilesource.c
+++ b/app/gegl/gimpoperationtilesource.c
@@ -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
diff --git a/app/gegl/gimpoperationvaluemode.c b/app/gegl/gimpoperationvaluemode.c
index 3d016f2..b3d4763 100644
--- a/app/gegl/gimpoperationvaluemode.c
+++ b/app/gegl/gimpoperationvaluemode.c
@@ -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;
}
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index 47fe532..e913ec3 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -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++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]