[gimp] app: add gegl:red-eye-removal to Filters -> Enhance



commit 31f7b7fd63b119780ba5353e32f2f2e729e64756
Author: Michael Natterer <mitch gimp org>
Date:   Sun May 19 20:51:35 2013 +0200

    app: add gegl:red-eye-removal to Filters -> Enhance

 app/actions/filters-actions.c |    7 +++++++
 app/tools/gimpgegltool.c      |    1 +
 menus/image-menu.xml.in       |    1 +
 3 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c
index 2eb667b..d1e509e 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -171,6 +171,12 @@ static const GimpStringActionEntry filters_actions[] =
     "gegl:polar-coordinates",
     NULL /* FIXME GIMP_HELP_FILTER_POLAR_COORDINATES */ },
 
+  { "filters-red-eye-removal", GIMP_STOCK_GEGL,
+    NC_("filters-action", "_Red Eye Removal..."), NULL,
+    NC_("filters-action", "Remove the red eye effect caused by camera flashes"),
+    "gegl:red-eye-removal",
+    NULL /* FIXME GIMP_HELP_FILTER_RED_EYE_REMOVAL */ },
+
   { "filters-ripple", GIMP_STOCK_GEGL,
     NC_("filters-action", "_Ripple..."), NULL,
     NC_("filters-action", "Displace pixels in a ripple pattern"),
@@ -283,6 +289,7 @@ filters_actions_update (GimpActionGroup *group,
   SET_SENSITIVE ("filters-photocopy",               writable);
   SET_SENSITIVE ("filters-pixelize",                writable);
   SET_SENSITIVE ("filters-polar-coordinates",       writable);
+  SET_SENSITIVE ("filters-red-eye-removal",         writable && !gray);
   SET_SENSITIVE ("filters-ripple",                  writable);
   SET_SENSITIVE ("filters-sobel",                   writable);
   SET_SENSITIVE ("filters-softglow",                writable);
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index 3435d8d..16a6b66 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -150,6 +150,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
     "gegl:pixelize", /* in gimp */
     "gegl:polar-coordinates", /* in gimp */
     "gegl:posterize", /* in gimp */
+    "gegl:red-eye-removal", /* in gimp */
     "gegl:ripple", /* in gimp */
     "gegl:rotate", /* in gimp */
     "gegl:scale", /* in gimp */
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index 344f135..353018d 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -625,6 +625,7 @@
        <menuitem action="filters-pixelize" />
       </menu>
       <menu action="plug-in-enhance-menu" name="Enhance">
+        <menuitem action="filters-red-eye-removal" />
         <menuitem action="filters-unsharp-mask" />
       </menu>
       <menu action="plug-in-distorts-menu" name="Distorts">


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