[gegl] operations: rename color-reduction to dither



commit 99397db1f8d0cfc7e25640949776ae544876b37f
Author: Øyvind Kolås <pippin gimp org>
Date:   Sat Dec 24 03:43:03 2016 +0100

    operations: rename color-reduction to dither

 operations/common/Makefile.am                     |    2 +-
 operations/common/{color-reduction.c => dither.c} |    9 +++++----
 po/POTFILES.in                                    |    2 +-
 3 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/operations/common/Makefile.am b/operations/common/Makefile.am
index 70d65a6..bb9fd9e 100644
--- a/operations/common/Makefile.am
+++ b/operations/common/Makefile.am
@@ -34,7 +34,7 @@ gegl_common_la_SOURCES =\
        checkerboard.c \
        color-enhance.c \
        color-exchange.c \
-       color-reduction.c \
+       dither.c \
        color-rotate.c \
        color-temperature.c \
        color-to-alpha.c \
diff --git a/operations/common/color-reduction.c b/operations/common/dither.c
similarity index 99%
rename from operations/common/color-reduction.c
rename to operations/common/dither.c
index 78b6b95..e75086d 100644
--- a/operations/common/color-reduction.c
+++ b/operations/common/dither.c
@@ -48,8 +48,8 @@ property_seed (seed, _("Random seed"), rand)
 #else
 
 #define GEGL_OP_FILTER
-#define GEGL_OP_NAME     color_reduction
-#define GEGL_OP_C_SOURCE color-reduction.c
+#define GEGL_OP_NAME     dither
+#define GEGL_OP_C_SOURCE dither.c
 
 #include "gegl-op.h"
 
@@ -655,8 +655,9 @@ gegl_op_class_init (GeglOpClass *klass)
   filter_class->process = process;
 
   gegl_operation_class_set_keys (operation_class,
-    "name",        "gegl:color-reduction",
-    "title",       _("Color Reduction"),
+    "name",        "gegl:dither",
+    "compat-name", "gegl:color-reduction",
+    "title",       _("Dither"),
     "categories",  "dither",
     "description", _("Reduce the number of colors in the image, by reducing "
                      "the bits per channel (colors and alpha). Different dithering methods "
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 603e85b..9d1e677 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -23,7 +23,6 @@ operations/common/checkerboard.c
 operations/common/color.c
 operations/common/color-enhance.c
 operations/common/color-exchange.c
-operations/common/color-reduction.c
 operations/common/color-rotate.c
 operations/common/color-temperature.c
 operations/common/color-to-alpha.c
@@ -38,6 +37,7 @@ operations/common/diffraction-patterns.c
 operations/common/displace.c
 operations/common/display.c
 operations/common/distance-transform.c
+operations/common/dither.c
 operations/common/dropshadow.c
 operations/common/edge.c
 operations/common/edge-laplace.c


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]