[gimp] app: add gegl:apply-lens to Filters -> Distorts



commit 60da428c73f5d9009e7417275ce3cf89764116dc
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 13 20:58:25 2014 +0200

    app: add gegl:apply-lens to Filters -> Distorts

 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 fe0638b..2d337a9 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -55,6 +55,11 @@ static const GimpStringActionEntry filters_actions[] =
     "gegl:texturize-canvas",
     NULL /* FIXME GIMP_HELP_FILTER_APPLY_CANVAS */ },
 
+  { "filters-apply-lens", GIMP_STOCK_GEGL,
+    NC_("filters-action", "Apply _Lens..."), NULL, NULL,
+    "gegl:apply-lens",
+    NULL /* FIXME GIMP_HELP_FILTER_APPLY_LENS */ },
+
   { "filters-bump-map", GIMP_STOCK_GEGL,
     NC_("filters-action", "_Bump Map..."), NULL, NULL,
     "gegl:bump-map",
@@ -370,6 +375,7 @@ filters_actions_update (GimpActionGroup *group,
   SET_SENSITIVE ("filters-alien-map",               writable);
   SET_SENSITIVE ("filters-antialias",               writable);
   SET_SENSITIVE ("filters-apply-canvas",            writable);
+  SET_SENSITIVE ("filters-apply-lens",              writable);
   SET_SENSITIVE ("filters-bump-map",                writable);
   SET_SENSITIVE ("filters-c2g",                     writable && !gray);
   SET_SENSITIVE ("filters-cartoon",                 writable);
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index cab508b..ddb70ba 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -116,6 +116,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
      */
     "gegl:alien-map",
     "gegl:antialias",
+    "gegl:apply-lens",
     "gegl:bump-map",
     "gegl:c2g",
     "gegl:cartoon",
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index c003dff..a2aa12a 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -646,6 +646,7 @@
         <menuitem action="filters-unsharp-mask" />
       </menu>
       <menu action="plug-in-distorts-menu" name="Distorts">
+       <menuitem action="filters-apply-lens" />
        <menuitem action="filters-emboss" />
         <menuitem action="filters-lens-distortion" />
         <menuitem action="filters-mosaic" />


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