[gimp] app: add gegl:texturize-canvas to the menus as "Apply Canvas"



commit ca938c1275612cd49db7854e5baf4dab1216e56e
Author: Michael Natterer <mitch gimp org>
Date:   Wed Jan 1 19:07:48 2014 +0100

    app: add gegl:texturize-canvas to the menus as "Apply Canvas"

 app/actions/filters-actions.c |    6 ++++++
 app/tools/gimpgegltool.c      |    3 ++-
 menus/image-menu.xml.in       |    1 +
 3 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c
index 00ad162..fe0638b 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -50,6 +50,11 @@ static const GimpStringActionEntry filters_actions[] =
     "gegl:antialias",
     NULL /* FIXME GIMP_HELP_FILTER_ANTIALIAS */ },
 
+  { "filters-apply-canvas", GIMP_STOCK_GEGL,
+    NC_("filters-action", "_Apply Canvas..."), NULL, NULL,
+    "gegl:texturize-canvas",
+    NULL /* FIXME GIMP_HELP_FILTER_APPLY_CANVAS */ },
+
   { "filters-bump-map", GIMP_STOCK_GEGL,
     NC_("filters-action", "_Bump Map..."), NULL, NULL,
     "gegl:bump-map",
@@ -364,6 +369,7 @@ filters_actions_update (GimpActionGroup *group,
 
   SET_SENSITIVE ("filters-alien-map",               writable);
   SET_SENSITIVE ("filters-antialias",               writable);
+  SET_SENSITIVE ("filters-apply-canvas",            writable);
   SET_SENSITIVE ("filters-bump-map",                writable);
   SET_SENSITIVE ("filters-c2g",                     writable && !gray);
   SET_SENSITIVE ("filters-cartoon",                 writable);
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index dd96c4c..cab508b 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -112,7 +112,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
   static const gchar * const name_blacklist[] =
   {
     /* these ops are already added to the menus via
-     * filter-actions ordrawable-actions
+     * filters-actions or drawable-actions
      */
     "gegl:alien-map",
     "gegl:antialias",
@@ -161,6 +161,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
     "gegl:softglow",
     "gegl:stretch-contrast",
     "gegl:stretch-contrast-hsv",
+    "gegl:texturize-canvas",
     "gegl:tile-seamless",
     "gegl:unsharp-mask",
     "gegl:value-invert",
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index 6b2e846..b28539f 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -681,6 +681,7 @@
       <menu action="plug-in-generic-menu" name="Generic" />
       <menu action="plug-in-combine-menu" name="Combine" />
       <menu action="plug-in-artistic-menu" name="Artistic">
+       <menuitem action="filters-apply-canvas" />
        <menuitem action="filters-cartoon" />
        <menuitem action="filters-cubism" />
        <menuitem action="filters-photocopy" />


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