[gimp] app: add gegl:distance-transform to Filters->Generic as "Distance Map"
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: add gegl:distance-transform to Filters->Generic as "Distance Map"
- Date: Sun, 3 Aug 2014 19:35:01 +0000 (UTC)
commit 50568ae2589b9d8292f6d64bc112c8c2073ceba1
Author: Michael Natterer <mitch gimp org>
Date: Sun Aug 3 21:34:32 2014 +0200
app: add gegl:distance-transform to Filters->Generic as "Distance Map"
app/actions/filters-actions.c | 6 ++++++
app/sanity.c | 1 +
app/tools/gimpgegltool.c | 1 +
menus/image-menu.xml.in | 1 +
4 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c
index 398bae0..c8b63fc 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -124,6 +124,11 @@ static const GimpStringActionEntry filters_actions[] =
"gegl:difference-of-gaussians",
NULL /* FIXME GIMP_HELP_FILTER_DIFFERENCE_OF_GAUSSIANS */ },
+ { "filters-distance-map", GIMP_STOCK_GEGL,
+ NC_("filters-action", "Distance Map..."), NULL, NULL,
+ "gegl:distance-transform",
+ NULL /* FIXME GIMP_HELP_FILTER_DISTANCE_MAP */ },
+
{ "filters-dropshadow", GIMP_STOCK_GEGL,
NC_("filters-action", "_Drop Shadow..."), NULL, NULL,
"gegl:dropshadow",
@@ -432,6 +437,7 @@ filters_actions_update (GimpActionGroup *group,
SET_SENSITIVE ("filters-cubism", writable);
SET_SENSITIVE ("filters-deinterlace", writable);
SET_SENSITIVE ("filters-difference-of-gaussians", writable);
+ SET_SENSITIVE ("filters-distance-map", writable);
SET_SENSITIVE ("filters-dropshadow", writable && alpha);
SET_SENSITIVE ("filters-edge-laplace", writable);
SET_SENSITIVE ("filters-edge-sobel", writable);
diff --git a/app/sanity.c b/app/sanity.c
index be1a444..fd65f50 100644
--- a/app/sanity.c
+++ b/app/sanity.c
@@ -491,6 +491,7 @@ sanity_check_gegl_ops (void)
"gegl:cubism",
"gegl:deinterlace",
"gegl:difference-of-gaussians",
+ "gegl:distance-transform",
"gegl:dropshadow",
"gegl:edge-laplace",
"gegl:edge-sobel",
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index 41cee6b..1d58ac3 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -132,6 +132,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
"gegl:cubism",
"gegl:deinterlace",
"gegl:difference-of-gaussians",
+ "gegl:distance-transform",
"gegl:dropshadow",
"gegl:edge-laplace",
"gegl:edge-sobel",
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index 258c5f3..bebfebe 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -687,6 +687,7 @@
</menu>
<menu action="plug-in-generic-menu" name="Generic">
<menuitem action="filters-convolution-matrix" />
+ <menuitem action="filters-distance-map" />
</menu>
<menu action="plug-in-combine-menu" name="Combine" />
<menu action="plug-in-artistic-menu" name="Artistic">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]