[gimp] app, menus: add gegl:lens-blur to Filters -> Blur



commit 323355a7087b0f155174ff8b3f37321dca4480ff
Author: Ell <ell_se yahoo com>
Date:   Tue Jun 2 22:54:02 2020 +0300

    app, menus: add gegl:lens-blur to Filters -> Blur
    
    gegl:lens-blur simulates an out-of-focus lens blur.

 app/actions/filters-actions.c | 6 ++++++
 app/sanity.c                  | 1 +
 app/tools/gimpgegltool.c      | 1 +
 app/widgets/gimphelp-ids.h    | 1 +
 menus/image-menu.xml.in       | 1 +
 5 files changed, 10 insertions(+)
---
diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c
index a1ad0e8025..b20c433f4e 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -414,6 +414,11 @@ static const GimpStringActionEntry filters_interactive_actions[] =
     "gegl:mirrors",
     GIMP_HELP_FILTER_KALEIDOSCOPE },
 
+  { "filters-lens-blur", GIMP_ICON_GEGL,
+    NC_("filters-action", "Le_ns Blur..."), NULL, NULL,
+    "gegl:lens-blur",
+    GIMP_HELP_FILTER_LENS_BLUR },
+
   { "filters-lens-distortion", GIMP_ICON_GEGL,
     NC_("filters-action", "Le_ns Distortion..."), NULL, NULL,
     "gegl:lens-distortion",
@@ -948,6 +953,7 @@ filters_actions_update (GimpActionGroup *group,
   SET_SENSITIVE ("filters-invert-value",            writable);
   SET_SENSITIVE ("filters-image-gradient",          writable);
   SET_SENSITIVE ("filters-kaleidoscope",            writable);
+  SET_SENSITIVE ("filters-lens-blur",               writable);
   SET_SENSITIVE ("filters-lens-distortion",         writable);
   SET_SENSITIVE ("filters-lens-flare",              writable);
   SET_SENSITIVE ("filters-levels",                  writable);
diff --git a/app/sanity.c b/app/sanity.c
index 7826e74789..abfc2f4745 100644
--- a/app/sanity.c
+++ b/app/sanity.c
@@ -653,6 +653,7 @@ sanity_check_gegl_ops (void)
     "gegl:introspect",
     "gegl:invert-gamma",
     "gegl:invert-linear",
+    "gegl:lens-blur",
     "gegl:lens-distortion",
     "gegl:lens-flare",
     "gegl:linear-sinusoid",
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index ac06797a36..9e67025457 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -192,6 +192,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
     "gegl:image-gradient",
     "gegl:invert-linear",
     "gegl:invert-gamma",
+    "gegl:lens-blur",
     "gegl:lens-distortion",
     "gegl:lens-flare",
     "gegl:linear-sinusoid",
diff --git a/app/widgets/gimphelp-ids.h b/app/widgets/gimphelp-ids.h
index 8905afc589..8e450d6be0 100644
--- a/app/widgets/gimphelp-ids.h
+++ b/app/widgets/gimphelp-ids.h
@@ -393,6 +393,7 @@
 #define GIMP_HELP_FILTER_INVERT_VALUE             "gimp-filter-invert-value"
 #define GIMP_HELP_FILTER_IMAGE_GRADIENT           "gimp-filter-image-gradient"
 #define GIMP_HELP_FILTER_KALEIDOSCOPE             "gimp-filter-kaleidoscope"
+#define GIMP_HELP_FILTER_LENS_BLUR                "gimp-filter-lens-blur"
 #define GIMP_HELP_FILTER_LENS_DISTORTION          "gimp-filter-lens-distortion"
 #define GIMP_HELP_FILTER_LENS_FLARE               "gimp-filter-lens-flare"
 #define GIMP_HELP_FILTER_LINEAR_SINUSOID          "gimp-filter-linear-sinusoid"
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index d9f6bbfa43..e0e320b1cb 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -702,6 +702,7 @@
       <menu action="filters-blur-menu" name="Blur">
        <menuitem action="filters-focus-blur" />
        <menuitem action="filters-gaussian-blur" />
+       <menuitem action="filters-lens-blur" />
        <menuitem action="filters-mean-curvature-blur" />
        <menuitem action="filters-median-blur" />
        <menuitem action="filters-pixelize" />


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