From 1ea3bb827e9c38e9d390b62dac121c87b37177ac Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 1 May 2012 19:41:32 +0200 Subject: [PATCH] app: add a dedicated menu entry for gegl:color-temperature --- app/actions/filters-actions.c | 9 +++++++- app/tools/gimpgegltool.c | 40 ++++++++++++++++++----------------- menus/image-menu.xml.in | 1 + 3 files changed, 30 insertions(+), 20 deletions(-) diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c index 9b4a70fedb..32632e0a02 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 110cf7e372..2b7ec26910 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:convert-format", - "gegl:introspect", - "gegl:path", - "gegl:text", - "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", /* pointless */ + "gegl:color-temperature", /* in gimp */ "gegl:color-to-alpha", /* in gimp */ - "gegl:invert", /* 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:invert", /* in gimp */ + "gegl:layer", + "gegl:lens-correct", + "gegl:opacity", /* pointless */ + "gegl:path", "gegl:pixelize", /* in gimp */ "gegl:polar-coordinates", /* in gimp */ "gegl:posterize", /* in gimp */ - "gegl:scale", /* in gimp */ - "gegl:translate", /* pointless */ - "gegl:shear", /* in gimp */ "gegl:rotate", /* in gimp */ - "gegl:transform", /* in gimp */ - "gegl:value-invert", /* in gimp */ + "gegl:scale", /* in gimp */ + "gegl:shear", /* in gimp */ + "gegl:text", "gegl:threshold", /* in gimp */ + "gegl:transform", /* in gimp */ + "gegl:translate", /* pointless */ + "gegl:value-invert", /* in gimp */ + "gegl:vector-stroke", "gimp-", "gimp:" }; diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in index 56af4b6d35..fbdc02794e 100644 --- a/menus/image-menu.xml.in +++ b/menus/image-menu.xml.in @@ -527,6 +527,7 @@ +