[gimp] Replaced old Ripple and Lens Distortion filters with new GEGL operations
- From: Alexandre Prokoudine <aprokoudine src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Replaced old Ripple and Lens Distortion filters with new GEGL operations
- Date: Sun, 13 May 2012 02:16:02 +0000 (UTC)
commit ac85c84a0f10c16edfbe0e168d6dd711ee62b2b2
Author: Alexandre Prokoudine <alexandre prokoudine gmail com>
Date: Sun May 13 06:15:24 2012 +0400
Replaced old Ripple and Lens Distortion filters with new GEGL operations
app/actions/filters-actions.c | 12 ++++++++++++
app/tools/gimpgegltool.c | 2 ++
menus/image-menu.xml.in | 2 ++
plug-ins/common/lens-distortion.c | 2 --
plug-ins/common/ripple.c | 2 --
5 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c
index a88735b..9e373a9 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -75,6 +75,18 @@ static const GimpStringActionEntry filters_actions[] =
"gegl:unsharp-mask",
NULL /* FIXME GIMP_HELP_FILTER_UNSHARP_MASK */ },
+ { "filters-ripple", GIMP_STOCK_GEGL,
+ NC_("filters-action", "_Ripple..."), NULL,
+ NC_("filters-action", "Displace pixels in a ripple pattern"),
+ "gegl:ripple",
+ NULL /* FIXME GIMP_HELP_FILTER_RIPPLE */ },
+
+ { "filters-lens-distortion", GIMP_STOCK_GEGL,
+ NC_("filters-action", "Lens Distortion..."), NULL,
+ NC_("filters-action", "Corrects lens distortion"),
+ "gegl:lens-distortion",
+ NULL /* FIXME GIMP_HELP_FILTER_RIPPLE */ },
+
{ "filters-semi-flatten", GIMP_STOCK_GEGL,
NC_("filters-action", "_Semi-Flatten..."), NULL,
NC_("filters-action", "Replace partial transparency with a color"),
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index f76b884..4d1c5b1 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -125,11 +125,13 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
"gegl:invert", /* in gimp */
"gegl:layer",
"gegl:lens-correct",
+ "gegl:lens-distortion", /* in gimp */
"gegl:opacity", /* pointless */
"gegl:path",
"gegl:pixelize", /* in gimp */
"gegl:polar-coordinates", /* in gimp */
"gegl:posterize", /* in gimp */
+ "gegl:ripple", /* in gimp */
"gegl:rotate", /* in gimp */
"gegl:scale", /* in gimp */
"gegl:sdl-display", /* useless */
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index 49be6d0..1ba171d 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -609,6 +609,8 @@
</menu>
<menu action="plug-in-distorts-menu" name="Distorts">
<menuitem action="filters-polar-coordinates" />
+ <menuitem action="filters-ripple" />
+ <menuitem action="filters-lens-distortion" />
</menu>
<menu action="plug-in-light-shadow-menu" name="Light and Shadow">
<placeholder name="Light" />
diff --git a/plug-ins/common/lens-distortion.c b/plug-ins/common/lens-distortion.c
index d0b9e91..07f3b39 100644
--- a/plug-ins/common/lens-distortion.c
+++ b/plug-ins/common/lens-distortion.c
@@ -120,8 +120,6 @@ query (void)
GIMP_PLUGIN,
G_N_ELEMENTS (args), 0,
args, NULL);
-
- gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/Filters/Distorts");
}
static void
diff --git a/plug-ins/common/ripple.c b/plug-ins/common/ripple.c
index 1588eb4..4dd72df 100644
--- a/plug-ins/common/ripple.c
+++ b/plug-ins/common/ripple.c
@@ -135,8 +135,6 @@ query (void)
GIMP_PLUGIN,
G_N_ELEMENTS (args), 0,
args, NULL);
-
- gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/Filters/Distorts");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]