[gimp] app: add gegl:dropshadow to Filters -> Light and Shadow
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: add gegl:dropshadow to Filters -> Light and Shadow
- Date: Fri, 31 May 2013 23:14:21 +0000 (UTC)
commit 7a284def90f83987aba054d027ec9e91384089e2
Author: Michael Natterer <mitch gimp org>
Date: Sat Jun 1 01:13:22 2013 +0200
app: add gegl:dropshadow to Filters -> Light and Shadow
Also move gegl:vignette there from Filters -> Decor.
app/actions/filters-actions.c | 6 ++++++
app/tools/gimpgegltool.c | 1 +
menus/image-menu.xml.in | 9 +++++----
3 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c
index e030b6f..6bb9e15 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -90,6 +90,11 @@ static const GimpStringActionEntry filters_actions[] =
"gegl:dot",
NULL /* FIXME GIMP_HELP_FILTER_DOT */ },
+ { "filters-dropshadow", GIMP_STOCK_GEGL,
+ NC_("filters-action", "_Drop Shadow..."), NULL, NULL,
+ "gegl:dropshadow",
+ NULL /* FIXME GIMP_HELP_FILTER_DROPSHADOW */ },
+
{ "filters-edge-laplace", GIMP_STOCK_GEGL,
NC_("filters-action", "_Laplace"), NULL, NULL,
"gegl:edge-laplace",
@@ -302,6 +307,7 @@ filters_actions_update (GimpActionGroup *group,
SET_SENSITIVE ("filters-deinterlace", writable);
SET_SENSITIVE ("filters-difference-of-gaussians", writable);
SET_SENSITIVE ("filters-dot", writable);
+ SET_SENSITIVE ("filters-dropshadow", writable && alpha);
SET_SENSITIVE ("filters-edge-laplace", writable);
SET_SENSITIVE ("filters-edge-sobel", writable);
SET_SENSITIVE ("filters-emboss", writable);
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index fe8f655..b4ed0df 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -124,6 +124,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
"gegl:deinterlace",
"gegl:difference-of-gaussians",
"gegl:dot",
+ "gegl:dropshadow",
"gegl:edge-laplace",
"gegl:edge-sobel",
"gegl:emboss",
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index 88f5c87..5bb0c5b 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -642,7 +642,10 @@
<menu action="plug-in-light-shadow-menu" name="Light and Shadow">
<placeholder name="Light" />
<separator />
- <placeholder name="Shadow" />
+ <placeholder name="Shadow">
+ <menuitem action="filters-dropshadow" />
+ <menuitem action="filters-vignette" />
+ </placeholder>
<separator />
<placeholder name="Glass" />
</menu>
@@ -668,9 +671,7 @@
<menuitem action="filters-photocopy" />
<menuitem action="filters-softglow" />
</menu>
- <menu action="plug-in-decor-menu" name="Decor">
- <menuitem action="filters-vignette" />
- </menu>
+ <menu action="plug-in-decor-menu" name="Decor" />
<menu action="plug-in-map-menu" name="Map">
<menuitem action="filters-fractal-trace" />
</menu>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]