[gegl] operations: Always set compat-name with gegl_operation_class_set_keys()
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations: Always set compat-name with gegl_operation_class_set_keys()
- Date: Tue, 30 Jul 2013 17:49:26 +0000 (UTC)
commit e7f5d1bf48ffc1ce32f52d44c7cc1bc3b93cb18e
Author: Michael Henning <drawoc darkrefraction com>
Date: Tue Jul 30 13:35:28 2013 -0400
operations: Always set compat-name with gegl_operation_class_set_keys()
operations/common/invert-linear.c | 2 +-
operations/common/motion-blur-linear.c | 2 +-
operations/common/over.c | 3 +--
operations/generated/clear.c | 6 +++---
operations/generated/color-burn.c | 2 +-
operations/generated/color-dodge.c | 2 +-
operations/generated/darken.c | 3 +--
operations/generated/difference.c | 3 +--
operations/generated/dst-atop.c | 6 +++---
operations/generated/dst-in.c | 6 +++---
operations/generated/dst-out.c | 6 +++---
operations/generated/dst-over.c | 6 +++---
operations/generated/dst.c | 6 +++---
operations/generated/exclusion.c | 3 +--
operations/generated/hard-light.c | 2 +-
operations/generated/lighten.c | 3 +--
operations/generated/overlay.c | 2 +-
operations/generated/plus.c | 2 +-
operations/generated/screen.c | 3 +--
operations/generated/src-atop.c | 6 +++---
operations/generated/src-in.c | 2 +-
operations/generated/src-out.c | 6 +++---
operations/generated/src.c | 6 +++---
operations/generated/svg-12-blend.rb | 7 +++----
operations/generated/svg-12-porter-duff.rb | 8 ++++----
operations/generated/svg-multiply.c | 3 +--
operations/generated/xor.c | 6 +++---
27 files changed, 52 insertions(+), 60 deletions(-)
---
diff --git a/operations/common/invert-linear.c b/operations/common/invert-linear.c
index b31c70b..7bbfe45 100644
--- a/operations/common/invert-linear.c
+++ b/operations/common/invert-linear.c
@@ -66,11 +66,11 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class = GEGL_OPERATION_CLASS (klass);
point_filter_class = GEGL_OPERATION_POINT_FILTER_CLASS (klass);
- operation_class->compat_name = "gegl:invert";
point_filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
"name" , "gegl:invert-linear",
+ "compat-name", "gegl:invert",
"categories" , "color",
"description",
_("Inverts the components (except alpha), the result is the "
diff --git a/operations/common/motion-blur-linear.c b/operations/common/motion-blur-linear.c
index 7c187c0..1ee715d 100644
--- a/operations/common/motion-blur-linear.c
+++ b/operations/common/motion-blur-linear.c
@@ -296,12 +296,12 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
operation_class->opencl_support = TRUE;
- operation_class->compat_name = "gegl:motion-blur";
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
"name", "gegl:motion-blur-linear",
+ "compat-name", "gegl:motion-blur",
"categories", "blur",
"description", _("Linear motion blur"),
NULL);
diff --git a/operations/common/over.c b/operations/common/over.c
index 826c283..1e4a8bf 100644
--- a/operations/common/over.c
+++ b/operations/common/over.c
@@ -132,10 +132,9 @@ gegl_chant_class_init (GeglChantClass *klass)
point_composer_class->process = process;
- operation_class->compat_name = "gegl:over";
-
gegl_operation_class_set_keys (operation_class,
"name" , "svg:src-over",
+ "compat-name", "gegl:over",
"categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation over (d = cA + cB * (1 - aA))"),
diff --git a/operations/generated/clear.c b/operations/generated/clear.c
index fc0905a..be84688 100644
--- a/operations/generated/clear.c
+++ b/operations/generated/clear.c
@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:clear";
gegl_operation_class_set_keys (operation_class,
- "name" , "svg:clear",
- "categories", "compositors:porter-duff",
+ "name" , "svg:clear",
+ "compat-name", "gegl:clear",
+ "categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation clear (d = 0.0f)"),
NULL);
diff --git a/operations/generated/color-burn.c b/operations/generated/color-burn.c
index 0dabf02..8d068d2 100644
--- a/operations/generated/color-burn.c
+++ b/operations/generated/color-burn.c
@@ -158,9 +158,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:color-burn";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:color-burn",
+ "compat-name" , "gegl:color-burn",
"description" ,
_("SVG blend operation color-burn (<code>if cA * aB + cB * aA <= aA * aB: d = cA * (1 - aB) + cB *
(1 - aA) otherwise: d = (cA == 0 ? 1 : (aA * (cA * aB + cB * aA - aA * aB) / cA) + cA * (1 - aB) + cB * (1 -
aA))</code>)"),
NULL);
diff --git a/operations/generated/color-dodge.c b/operations/generated/color-dodge.c
index 18d1f16..5c4657f 100644
--- a/operations/generated/color-dodge.c
+++ b/operations/generated/color-dodge.c
@@ -158,9 +158,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:color-dodge";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:color-dodge",
+ "compat-name" , "gegl:color-dodge",
"description" ,
_("SVG blend operation color-dodge (<code>if cA * aB + cB * aA >= aA * aB: d = aA * aB + cA * (1 -
aB) + cB * (1 - aA) otherwise: d = (cA == aA ? 1 : cB * aA / (aA == 0 ? 1 : 1 - cA / aA)) + cA * (1 - aB) +
cB * (1 - aA)</code>)"),
NULL);
diff --git a/operations/generated/darken.c b/operations/generated/darken.c
index 0335ff3..2ce675d 100644
--- a/operations/generated/darken.c
+++ b/operations/generated/darken.c
@@ -155,10 +155,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:darken";
-
gegl_operation_class_set_keys (operation_class,
"name" , "svg:darken",
+ "compat-name" , "gegl:darken",
"description" ,
_("SVG blend operation darken (<code>d = MIN (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 -
aA)</code>)"),
NULL);
diff --git a/operations/generated/difference.c b/operations/generated/difference.c
index 26217c6..32e2416 100644
--- a/operations/generated/difference.c
+++ b/operations/generated/difference.c
@@ -155,10 +155,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:difference";
-
gegl_operation_class_set_keys (operation_class,
"name" , "svg:difference",
+ "compat-name" , "gegl:difference",
"description" ,
_("SVG blend operation difference (<code>d = cA + cB - 2 * (MIN (cA * aB, cB * aA))</code>)"),
NULL);
diff --git a/operations/generated/dst-atop.c b/operations/generated/dst-atop.c
index 82d236f..145d41c 100644
--- a/operations/generated/dst-atop.c
+++ b/operations/generated/dst-atop.c
@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:dst-atop";
gegl_operation_class_set_keys (operation_class,
- "name" , "svg:dst-atop",
- "categories", "compositors:porter-duff",
+ "name" , "svg:dst-atop",
+ "compat-name", "gegl:dst-atop",
+ "categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-atop (d = cB * aA + cA * (1.0f - aB))"),
NULL);
diff --git a/operations/generated/dst-in.c b/operations/generated/dst-in.c
index 4b45edd..22508d9 100644
--- a/operations/generated/dst-in.c
+++ b/operations/generated/dst-in.c
@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:dst-in";
gegl_operation_class_set_keys (operation_class,
- "name" , "svg:dst-in",
- "categories", "compositors:porter-duff",
+ "name" , "svg:dst-in",
+ "compat-name", "gegl:dst-in",
+ "categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-in (d = cB * aA)"),
NULL);
diff --git a/operations/generated/dst-out.c b/operations/generated/dst-out.c
index 23b0bb7..76ce7a1 100644
--- a/operations/generated/dst-out.c
+++ b/operations/generated/dst-out.c
@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:dst-out";
gegl_operation_class_set_keys (operation_class,
- "name" , "svg:dst-out",
- "categories", "compositors:porter-duff",
+ "name" , "svg:dst-out",
+ "compat-name", "gegl:dst-out",
+ "categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-out (d = cB * (1.0f - aA))"),
NULL);
diff --git a/operations/generated/dst-over.c b/operations/generated/dst-over.c
index cf8fa39..9f12711 100644
--- a/operations/generated/dst-over.c
+++ b/operations/generated/dst-over.c
@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:dst-over";
gegl_operation_class_set_keys (operation_class,
- "name" , "svg:dst-over",
- "categories", "compositors:porter-duff",
+ "name" , "svg:dst-over",
+ "compat-name", "gegl:dst-over",
+ "categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst-over (d = cB + cA * (1.0f - aB))"),
NULL);
diff --git a/operations/generated/dst.c b/operations/generated/dst.c
index 7fe9f31..c858ccf 100644
--- a/operations/generated/dst.c
+++ b/operations/generated/dst.c
@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:dst";
gegl_operation_class_set_keys (operation_class,
- "name" , "svg:dst",
- "categories", "compositors:porter-duff",
+ "name" , "svg:dst",
+ "compat-name", "gegl:dst",
+ "categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation dst (d = cB)"),
NULL);
diff --git a/operations/generated/exclusion.c b/operations/generated/exclusion.c
index 4dc154f..22ca3f9 100644
--- a/operations/generated/exclusion.c
+++ b/operations/generated/exclusion.c
@@ -155,10 +155,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:exclusion";
-
gegl_operation_class_set_keys (operation_class,
"name" , "svg:exclusion",
+ "compat-name" , "gegl:exclusion",
"description" ,
_("SVG blend operation exclusion (<code>d = (cA * aB + cB * aA - 2 * cA * cB) + cA * (1 - aB) + cB *
(1 - aA)</code>)"),
NULL);
diff --git a/operations/generated/hard-light.c b/operations/generated/hard-light.c
index bcf5019..df94b19 100644
--- a/operations/generated/hard-light.c
+++ b/operations/generated/hard-light.c
@@ -158,9 +158,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:hard-light";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:hard-light",
+ "compat-name" , "gegl:hard-light",
"description" ,
_("SVG blend operation hard-light (<code>if 2 * cA < aA: d = 2 * cA * cB + cA * (1 - aB) + cB * (1 -
aA) otherwise: d = aA * aB - 2 * (aB - cB) * (aA - cA) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
diff --git a/operations/generated/lighten.c b/operations/generated/lighten.c
index 4da6c48..7b53d7c 100644
--- a/operations/generated/lighten.c
+++ b/operations/generated/lighten.c
@@ -155,10 +155,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:lighten";
-
gegl_operation_class_set_keys (operation_class,
"name" , "svg:lighten",
+ "compat-name" , "gegl:lighten",
"description" ,
_("SVG blend operation lighten (<code>d = MAX (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 -
aA)</code>)"),
NULL);
diff --git a/operations/generated/overlay.c b/operations/generated/overlay.c
index f3d1fd6..9c1d3a4 100644
--- a/operations/generated/overlay.c
+++ b/operations/generated/overlay.c
@@ -158,9 +158,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:overlay";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:overlay",
+ "compat-name" , "gegl:overlay",
"description" ,
_("SVG blend operation overlay (<code>if 2 * cB > aB: d = 2 * cA * cB + cA * (1 - aB) + cB * (1 -
aA) otherwise: d = aA * aB - 2 * (aB - cB) * (aA - cA) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
diff --git a/operations/generated/plus.c b/operations/generated/plus.c
index 7fb9e35..3d3e98e 100644
--- a/operations/generated/plus.c
+++ b/operations/generated/plus.c
@@ -155,10 +155,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:plus";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:plus",
+ "compat-name" , "gegl:plus",
"description" ,
_("SVG blend operation plus (<code>d = cA + cB</code>)"),
NULL);
diff --git a/operations/generated/screen.c b/operations/generated/screen.c
index 6201ffe..4d3833e 100644
--- a/operations/generated/screen.c
+++ b/operations/generated/screen.c
@@ -155,10 +155,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:screen";
-
gegl_operation_class_set_keys (operation_class,
"name" , "svg:screen",
+ "compat-name" , "gegl:screen",
"description" ,
_("SVG blend operation screen (<code>d = cA + cB - cA * cB</code>)"),
NULL);
diff --git a/operations/generated/src-atop.c b/operations/generated/src-atop.c
index fb10d34..ff625fa 100644
--- a/operations/generated/src-atop.c
+++ b/operations/generated/src-atop.c
@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:src-atop";
gegl_operation_class_set_keys (operation_class,
- "name" , "svg:src-atop",
- "categories", "compositors:porter-duff",
+ "name" , "svg:src-atop",
+ "compat-name", "gegl:src-atop",
+ "categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation src-atop (d = cA * aB + cB * (1.0f - aA))"),
NULL);
diff --git a/operations/generated/src-in.c b/operations/generated/src-in.c
index 88e5af9..aae66da 100644
--- a/operations/generated/src-in.c
+++ b/operations/generated/src-in.c
@@ -116,9 +116,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:src-in";
gegl_operation_class_set_keys (operation_class,
"name" , "svg:src-in",
+ "compat-name", "gegl:src-in",
"get_bounding_box" , get_bounding_box,
"categories", "compositors:porter-duff",
"description" ,
diff --git a/operations/generated/src-out.c b/operations/generated/src-out.c
index 9577f03..bb2359e 100644
--- a/operations/generated/src-out.c
+++ b/operations/generated/src-out.c
@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:src-out";
gegl_operation_class_set_keys (operation_class,
- "name" , "svg:src-out",
- "categories", "compositors:porter-duff",
+ "name" , "svg:src-out",
+ "compat-name", "gegl:src-out",
+ "categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation src-out (d = cA * (1.0f - aB))"),
NULL);
diff --git a/operations/generated/src.c b/operations/generated/src.c
index c497d54..d8c8179 100644
--- a/operations/generated/src.c
+++ b/operations/generated/src.c
@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:src";
gegl_operation_class_set_keys (operation_class,
- "name" , "svg:src",
- "categories", "compositors:porter-duff",
+ "name" , "svg:src",
+ "compat-name", "gegl:src",
+ "categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation src (d = cA)"),
NULL);
diff --git a/operations/generated/svg-12-blend.rb b/operations/generated/svg-12-blend.rb
index 013b4e8..0454dbd 100755
--- a/operations/generated/svg-12-blend.rb
+++ b/operations/generated/svg-12-blend.rb
@@ -232,10 +232,9 @@ a.each do
"
file.write file_tail1
file.write "
- operation_class->compat_name = \"gegl:#{compat_name}\";
-
gegl_operation_class_set_keys (operation_class,
\"name\" , \"svg:#{name}\",
+ \"compat-name\" , \"gegl:#{compat_name}\",
\"description\" ,
_(\"SVG blend operation #{name} (<code>d = #{formula1}</code>)\"),
NULL);
@@ -298,9 +297,9 @@ b.each do
"
file.write file_tail1
file.write "
- operation_class->compat_name = \"gegl:#{name}\";
gegl_operation_class_set_keys (operation_class,
\"name\" , \"svg:#{name}\",
+ \"compat-name\" , \"gegl:#{name}\",
\"description\" ,
_(\"SVG blend operation #{name} (<code>if #{cond1}: d = #{formula1} otherwise: d =
#{formula2}</code>)\"),
NULL);
@@ -428,10 +427,10 @@ d.each do
"
file.write file_tail1
file.write "
- operation_class->compat_name = \"gegl:#{name}\";
gegl_operation_class_set_keys (operation_class,
\"name\" , \"svg:#{name}\",
+ \"compat-name\" , \"gegl:#{name}\",
\"description\" ,
_(\"SVG blend operation #{name} (<code>d = #{formula1}</code>)\"),
NULL);
diff --git a/operations/generated/svg-12-porter-duff.rb b/operations/generated/svg-12-porter-duff.rb
index dab5d2f..a86d3b4 100755
--- a/operations/generated/svg-12-porter-duff.rb
+++ b/operations/generated/svg-12-porter-duff.rb
@@ -176,10 +176,10 @@ a.each do
"
file.write file_tail1
file.write "
- operation_class->compat_name = \"gegl:#{name}\";
gegl_operation_class_set_keys (operation_class,
- \"name\" , \"svg:#{name}\",
- \"categories\", \"compositors:porter-duff\",
+ \"name\" , \"svg:#{name}\",
+ \"compat-name\", \"gegl:#{name}\",
+ \"categories\" , \"compositors:porter-duff\",
\"description\",
_(\"Porter Duff operation #{name} (d = #{c_formula})\"),
NULL);
@@ -252,9 +252,9 @@ static GeglRectangle get_bounding_box (GeglOperation *self)
"
file.write file_tail1
file.write "
- operation_class->compat_name = \"gegl:#{name}\";
gegl_operation_class_set_keys (operation_class,
\"name\" , \"svg:#{name}\",
+ \"compat-name\", \"gegl:#{name}\",
\"get_bounding_box\" , get_bounding_box,
\"categories\", \"compositors:porter-duff\",
\"description\" ,
diff --git a/operations/generated/svg-multiply.c b/operations/generated/svg-multiply.c
index d19d135..6f10d76 100644
--- a/operations/generated/svg-multiply.c
+++ b/operations/generated/svg-multiply.c
@@ -155,10 +155,9 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->process = operation_process;
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:svg-multiply";
-
gegl_operation_class_set_keys (operation_class,
"name" , "svg:multiply",
+ "compat-name" , "gegl:svg-multiply",
"description" ,
_("SVG blend operation multiply (<code>d = cA * cB + cA * (1 - aB) + cB * (1 - aA)</code>)"),
NULL);
diff --git a/operations/generated/xor.c b/operations/generated/xor.c
index e35dc0f..6c93d1d 100644
--- a/operations/generated/xor.c
+++ b/operations/generated/xor.c
@@ -108,10 +108,10 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->prepare = prepare;
- operation_class->compat_name = "gegl:xor";
gegl_operation_class_set_keys (operation_class,
- "name" , "svg:xor",
- "categories", "compositors:porter-duff",
+ "name" , "svg:xor",
+ "compat-name", "gegl:xor",
+ "categories" , "compositors:porter-duff",
"description",
_("Porter Duff operation xor (d = cA * (1.0f - aB)+ cB * (1.0f - aA))"),
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]