[gimp] app: add gegl:whirl-pinch to Filters -> Distorts



commit 94294cd114a8a076fca039aed2f6703706d10600
Author: Michael Natterer <mitch gimp org>
Date:   Sun May 19 23:28:06 2013 +0200

    app: add gegl:whirl-pinch to Filters -> Distorts

 app/actions/filters-actions.c |    8 ++++++++
 app/tools/gimpgegltool.c      |    1 +
 menus/image-menu.xml.in       |    1 +
 3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c
index 4851138..df9f23a 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -224,6 +224,12 @@ static const GimpStringActionEntry filters_actions[] =
     NC_("filters-action", "Applies a vignette to an image"),
     "gegl:vignette",
     NULL /* FIXME GIMP_HELP_FILTER_VIGNETTE */ },
+
+  { "filters-whirl-pinch", GIMP_STOCK_GEGL,
+    NC_("filters-action", "W_hirl and Pinch..."), NULL,
+    NC_("filters-action", "Distort an image by whirling and pinching"),
+    "gegl:whirl-pinch",
+    NULL /* FIXME GIMP_HELP_FILTER_WHIRL_PINCH */ },
 };
 
 void
@@ -303,6 +309,8 @@ filters_actions_update (GimpActionGroup *group,
   SET_SENSITIVE ("filters-semi-flatten",            writable && alpha);
   SET_SENSITIVE ("filters-threshold-alpha",         writable && alpha);
   SET_SENSITIVE ("filters-unsharp-mask",            writable);
+  SET_SENSITIVE ("filters-vignette",                writable);
+  SET_SENSITIVE ("filters-whirl-pinch",             writable);
 
 #undef SET_SENSITIVE
 }
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index 735d893..08e1a52 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -168,6 +168,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
     "gegl:value-invert", /* in gimp */
     "gegl:vector-stroke",
     "gegl:vignette", /* in gimp */
+    "gegl:whirl-pinch", /* in gimp */
   };
 
   gchar **categories;
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index a166444..56902b5 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -632,6 +632,7 @@
        <menuitem action="filters-polar-coordinates" />
         <menuitem action="filters-ripple" />
         <menuitem action="filters-lens-distortion" />
+        <menuitem action="filters-whirl-pinch" />
       </menu>
       <menu action="plug-in-light-shadow-menu" name="Light and Shadow">
         <placeholder name="Light" />


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