[gimp/goat-invasion] app: add a dedicated menu entry for gegl:color-temperature



commit 7596ed707cdce5e5911e1b587bc6772b4e8f5ce8
Author: Michael Natterer <mitch gimp org>
Date:   Tue May 1 19:41:32 2012 +0200

    app: add a dedicated menu entry for gegl:color-temperature

 app/actions/filters-actions.c |    9 ++++++++-
 app/tools/gimpgegltool.c      |   32 +++++++++++++++++---------------
 menus/image-menu.xml.in       |    1 +
 3 files changed, 26 insertions(+), 16 deletions(-)
---
diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c
index 9b4a70f..32632e0 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -39,11 +39,17 @@
 
 static const GimpStringActionEntry filters_actions[] =
 {
+  { "filters-color-temperature", GIMP_STOCK_GEGL,
+    NC_("filters-action", "Color T_emperature..."), NULL,
+    NC_("filters-action", "Change the color temperature of the image"),
+    "gegl:color-temperature",
+    NULL /* FIXME GIMP_HELP_FILTER_COLOR_TEMPERATURE */ },
+
   { "filters-color-to-alpha", GIMP_STOCK_GEGL,
     NC_("filters-action", "Color to _Alpha..."), NULL,
     NC_("filters-action", "Convert a specified color to transparency"),
     "gegl:color-to-alpha",
-    NULL /* FIXME GIMP_HELP_FILTER_PIXELIZE */ },
+    NULL /* FIXME GIMP_HELP_FILTER_COLOR_TO_ALPHA */ },
 
   { "filters-gaussian-blur", GIMP_STOCK_GEGL,
     NC_("filters-action", "_Gaussian Blur..."), NULL,
@@ -111,6 +117,7 @@ filters_actions_update (GimpActionGroup *group,
 #define SET_SENSITIVE(action,condition) \
         gimp_action_group_set_action_sensitive (group, action, (condition) != 0)
 
+  SET_SENSITIVE ("filters-color-temperature", writable && !gray);
   SET_SENSITIVE ("filters-color-to-alpha",    writable && !gray && alpha);
   SET_SENSITIVE ("filters-gaussian-blur",     writable);
   SET_SENSITIVE ("filters-pixelize",          writable);
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index 110cf7e..2b7ec26 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -110,33 +110,35 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
   };
   static const gchar * const name_blacklist[] =
   {
+    "gegl:color", /* pointless */
+    "gegl:color-temperature", /* in gimp */
+    "gegl:color-to-alpha", /* in gimp */
+    "gegl:colorize", /* in gimp */
+    "gegl:contrast-curve",
     "gegl:convert-format",
+    "gegl:display",
+    "gegl:fill-path",
+    "gegl:gaussian-blur", /* in gimp */
+    "gegl:grey", /* in gimp */
+    "gegl:hstack",
     "gegl:introspect",
-    "gegl:path",
-    "gegl:text",
+    "gegl:invert", /* in gimp */
     "gegl:layer",
-    "gegl:contrast-curve",
-    "gegl:fill-path",
-    "gegl:vector-stroke",
     "gegl:lens-correct",
-    "gegl:hstack",
-    "gegl:display",
     "gegl:opacity", /* pointless */
-    "gegl:colorize", /* in gimp */
-    "gegl:color-to-alpha", /* in gimp */
-    "gegl:invert", /* in gimp */
-    "gegl:gaussian-blur", /* in gimp */
-    "gegl:grey", /* in gimp */
+    "gegl:path",
     "gegl:pixelize", /* in gimp */
     "gegl:polar-coordinates", /* in gimp */
     "gegl:posterize", /* in gimp */
+    "gegl:rotate", /* in gimp */
     "gegl:scale", /* in gimp */
-    "gegl:translate", /* pointless */
     "gegl:shear", /* in gimp */
-    "gegl:rotate", /* in gimp */
+    "gegl:text",
+    "gegl:threshold", /* in gimp */
     "gegl:transform", /* in gimp */
+    "gegl:translate", /* pointless */
     "gegl:value-invert", /* in gimp */
-    "gegl:threshold", /* in gimp */
+    "gegl:vector-stroke",
     "gimp-",
     "gimp:"
   };
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index 56af4b6..fbdc027 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -527,6 +527,7 @@
       </menu>
       <separator />
       <menuitem action="filters-color-to-alpha" />
+      <menuitem action="filters-color-temperature" />
       <placeholder name="Modify" />
     </menu>
 



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