Replaced old Ripple and Lens Distortion filters with new GEGL operations

This commit is contained in:
Alexandre Prokoudine 2012-05-13 06:15:24 +04:00
parent 20ae491b21
commit ac85c84a0f
5 changed files with 16 additions and 4 deletions

View File

@ -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"),

View File

@ -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 */

View File

@ -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" />

View File

@ -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

View File

@ -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