[gimp] app: fix enum to name mapping for hsv legacy modes
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix enum to name mapping for hsv legacy modes
- Date: Tue, 10 Jan 2017 22:46:22 +0000 (UTC)
commit 33f6398e00d387dc7b35f7c0dd450bf8cb56e52d
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Jan 10 23:46:01 2017 +0100
app: fix enum to name mapping for hsv legacy modes
app/gegl/gimp-gegl-nodes.c | 30 ++++++++++++++++++++----------
1 files changed, 20 insertions(+), 10 deletions(-)
---
diff --git a/app/gegl/gimp-gegl-nodes.c b/app/gegl/gimp-gegl-nodes.c
index 56c1a6e..da27e6b 100644
--- a/app/gegl/gimp-gegl-nodes.c
+++ b/app/gegl/gimp-gegl-nodes.c
@@ -224,39 +224,43 @@ gimp_gegl_mode_node_set_mode (GeglNode *node,
break;
case GIMP_LAYER_MODE_HSV_HUE:
- operation = "gimp:hue";
+ operation = "gimp:hsv-hue";
break;
case GIMP_LAYER_MODE_HSV_SATURATION:
- operation = "gimp:saturation";
+ operation = "gimp:hsv-saturation";
break;
case GIMP_LAYER_MODE_HSV_COLOR:
- operation = "gimp:color";
+ operation = "gimp:hsv-color";
break;
case GIMP_LAYER_MODE_HSV_VALUE:
- operation = "gimp:value";
+ operation = "gimp:hsv-value";
break;
case GIMP_LAYER_MODE_HSV_HUE_LEGACY:
- operation = "gimp:hue-legacy";
+ operation = "gimp:hsv-hue-legacy";
break;
case GIMP_LAYER_MODE_HSV_SATURATION_LEGACY:
- operation = "gimp:saturation-legacy";
+ operation = "gimp:hsv-saturation-legacy";
break;
case GIMP_LAYER_MODE_HSV_COLOR_LEGACY:
- operation = "gimp:color-legacy";
+ operation = "gimp:hsv-color-legacy";
break;
case GIMP_LAYER_MODE_HSV_VALUE_LEGACY:
- operation = "gimp:value-legacy";
+ operation = "gimp:hsv-value-legacy";
+ break;
+
+ case GIMP_LAYER_MODE_DIVIDE:
+ operation = "gimp:divide";
break;
case GIMP_LAYER_MODE_DIVIDE_LEGACY:
- operation = "gimp:divide-mode";
+ operation = "gimp:divide-legacy";
break;
case GIMP_LAYER_MODE_DODGE:
@@ -267,8 +271,12 @@ gimp_gegl_mode_node_set_mode (GeglNode *node,
operation = "gimp:dodge-legacy";
break;
+ case GIMP_LAYER_MODE_BURN:
+ operation = "gimp:burn";
+ break;
+
case GIMP_LAYER_MODE_BURN_LEGACY:
- operation = "gimp:burn-mode";
+ operation = "gimp:burn-legacy";
break;
case GIMP_LAYER_MODE_HARDLIGHT_LEGACY:
@@ -374,9 +382,11 @@ gimp_gegl_mode_node_set_mode (GeglNode *node,
case GIMP_LAYER_MODE_HSV_SATURATION_LEGACY:
case GIMP_LAYER_MODE_HSV_COLOR_LEGACY:
case GIMP_LAYER_MODE_HSV_VALUE_LEGACY:
+ case GIMP_LAYER_MODE_DIVIDE:
case GIMP_LAYER_MODE_DIVIDE_LEGACY:
case GIMP_LAYER_MODE_DODGE:
case GIMP_LAYER_MODE_DODGE_LEGACY:
+ case GIMP_LAYER_MODE_BURN:
case GIMP_LAYER_MODE_BURN_LEGACY:
case GIMP_LAYER_MODE_HARDLIGHT_LEGACY:
case GIMP_LAYER_MODE_SOFTLIGHT_LEGACY:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]