[gimp] app: add gegl:stretch-contrast to Colors/Auto/



commit 5efcc0eb09e863dad6cd2f4eef5116bd0ca3d880
Author: Téo Mazars <teomazars gmail com>
Date:   Fri Nov 15 18:58:52 2013 +0100

    app: add gegl:stretch-contrast to Colors/Auto/
    
    before removing the plug-in

 app/actions/filters-actions.c |    6 ++++++
 app/tools/gimpgegltool.c      |    1 +
 menus/image-menu.xml.in       |    1 +
 3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c
index 164c56b..807eee0 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -255,6 +255,11 @@ static const GimpStringActionEntry filters_actions[] =
     "gegl:softglow",
     NULL /* FIXME GIMP_HELP_FILTER_SOFTGLOW */ },
 
+  { "filters-stretch-contrast", GIMP_STOCK_GEGL,
+    NC_("filters-action", "_Stretch Contrast..."), NULL, NULL,
+    "gegl:stretch-contrast",
+    NULL /* FIXME GIMP_HELP_FILTER_STRETCH_CONTRAST */ },
+
   { "filters-threshold-alpha", GIMP_STOCK_GEGL,
     NC_("filters-action", "_Threshold Alpha..."), NULL, NULL,
     "gimp:threshold-alpha",
@@ -389,6 +394,7 @@ filters_actions_update (GimpActionGroup *group,
   SET_SENSITIVE ("filters-semi-flatten",            writable && alpha);
   SET_SENSITIVE ("filters-shift",                   writable);
   SET_SENSITIVE ("filters-softglow",                writable);
+  SET_SENSITIVE ("filters-stretch-contrast",        writable);
   SET_SENSITIVE ("filters-threshold-alpha",         writable && alpha);
   SET_SENSITIVE ("filters-tile-seamless",           writable);
   SET_SENSITIVE ("filters-unsharp-mask",            writable);
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index b6e2b3e..bb331db 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -158,6 +158,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
     "gegl:ripple",
     "gegl:shift",
     "gegl:softglow",
+    "gegl:stretch-contrast",
     "gegl:tile-seamless",
     "gegl:unsharp-mask",
     "gegl:value-invert",
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index dac5975..0130f2a 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -530,6 +530,7 @@
       <menu action="colors-auto-menu" name="Auto">
         <menuitem action="drawable-equalize" />
         <menuitem action="drawable-levels-stretch" />
+       <menuitem action="filters-stretch-contrast" />
       </menu>
       <menu action="colors-components-menu" name="Components">
        <menuitem action="filters-channel-mixer" />


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