[gimp] Replaced the old Unsharp Mask filter with the new GEGL operation



commit 20ae491b21858a3200efa52fea57f1ccd5cfb329
Author: Alexandre Prokoudine <alexandre prokoudine gmail com>
Date:   Sun May 13 05:38:24 2012 +0400

    Replaced the old Unsharp Mask filter with the new GEGL operation

 app/actions/filters-actions.c  |    6 ++++++
 app/tools/gimpgegltool.c       |    1 +
 menus/image-menu.xml.in        |   10 ++++++----
 plug-ins/common/unsharp-mask.c |    1 -
 4 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c
index b023199..a88735b 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -69,6 +69,12 @@ static const GimpStringActionEntry filters_actions[] =
     "gegl:polar-coordinates",
     NULL /* FIXME GIMP_HELP_FILTER_POLAR_COORDINATES */ },
 
+  { "filters-unsharp-mask", GIMP_STOCK_GEGL,
+    NC_("filters-action", "_Unsharp Mask..."), NULL,
+    NC_("filters-action", "The most widely used method for sharpening an image"),
+    "gegl:unsharp-mask",
+    NULL /* FIXME GIMP_HELP_FILTER_UNSHARP_MASK */ },
+
   { "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 6477e78..f76b884 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -138,6 +138,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
     "gegl:threshold", /* in gimp */
     "gegl:transform", /* in gimp */
     "gegl:translate", /* pointless */
+    "gegl:unsharp-mask", /* in gimp */
     "gegl:value-invert", /* in gimp */
     "gegl:vector-stroke"
   };
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index 2ab5429..49be6d0 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -601,12 +601,14 @@
       <menuitem action="plug-in-reset-all" />
       <separator />
       <menu action="plug-in-blur-menu" name="Blur">
-	<menuitem action="filters-gaussian-blur" />
-	<menuitem action="filters-pixelize" />
+      	<menuitem action="filters-gaussian-blur" />
+      	<menuitem action="filters-pixelize" />
+      </menu>
+      <menu action="plug-in-enhance-menu" name="Enhance">
+        <menuitem action="filters-unsharp-mask" />
       </menu>
-      <menu action="plug-in-enhance-menu" name="Enhance" />
       <menu action="plug-in-distorts-menu" name="Distorts">
-	<menuitem action="filters-polar-coordinates" />
+      	<menuitem action="filters-polar-coordinates" />
       </menu>
       <menu action="plug-in-light-shadow-menu" name="Light and Shadow">
         <placeholder name="Light" />
diff --git a/plug-ins/common/unsharp-mask.c b/plug-ins/common/unsharp-mask.c
index e6e3ad8..0618276 100644
--- a/plug-ins/common/unsharp-mask.c
+++ b/plug-ins/common/unsharp-mask.c
@@ -144,7 +144,6 @@ query (void)
                           G_N_ELEMENTS (args), 0,
                           args, NULL);
 
-  gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/Filters/Enhance");
 }
 
 static void



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