mirror of https://github.com/GNOME/gimp.git
app: add a dedicated menu entry for gegl:color-temperature
This commit is contained in:
parent
58324ab239
commit
1ea3bb827e
|
@ -39,11 +39,17 @@
|
||||||
|
|
||||||
static const GimpStringActionEntry filters_actions[] =
|
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,
|
{ "filters-color-to-alpha", GIMP_STOCK_GEGL,
|
||||||
NC_("filters-action", "Color to _Alpha..."), NULL,
|
NC_("filters-action", "Color to _Alpha..."), NULL,
|
||||||
NC_("filters-action", "Convert a specified color to transparency"),
|
NC_("filters-action", "Convert a specified color to transparency"),
|
||||||
"gegl:color-to-alpha",
|
"gegl:color-to-alpha",
|
||||||
NULL /* FIXME GIMP_HELP_FILTER_PIXELIZE */ },
|
NULL /* FIXME GIMP_HELP_FILTER_COLOR_TO_ALPHA */ },
|
||||||
|
|
||||||
{ "filters-gaussian-blur", GIMP_STOCK_GEGL,
|
{ "filters-gaussian-blur", GIMP_STOCK_GEGL,
|
||||||
NC_("filters-action", "_Gaussian Blur..."), NULL,
|
NC_("filters-action", "_Gaussian Blur..."), NULL,
|
||||||
|
@ -111,6 +117,7 @@ filters_actions_update (GimpActionGroup *group,
|
||||||
#define SET_SENSITIVE(action,condition) \
|
#define SET_SENSITIVE(action,condition) \
|
||||||
gimp_action_group_set_action_sensitive (group, action, (condition) != 0)
|
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-color-to-alpha", writable && !gray && alpha);
|
||||||
SET_SENSITIVE ("filters-gaussian-blur", writable);
|
SET_SENSITIVE ("filters-gaussian-blur", writable);
|
||||||
SET_SENSITIVE ("filters-pixelize", writable);
|
SET_SENSITIVE ("filters-pixelize", writable);
|
||||||
|
|
|
@ -110,33 +110,35 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
|
||||||
};
|
};
|
||||||
static const gchar * const name_blacklist[] =
|
static const gchar * const name_blacklist[] =
|
||||||
{
|
{
|
||||||
"gegl:convert-format",
|
"gegl:color", /* pointless */
|
||||||
"gegl:introspect",
|
"gegl:color-temperature", /* in gimp */
|
||||||
"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-to-alpha", /* 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:gaussian-blur", /* in gimp */
|
||||||
"gegl:grey", /* 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:pixelize", /* in gimp */
|
||||||
"gegl:polar-coordinates", /* in gimp */
|
"gegl:polar-coordinates", /* in gimp */
|
||||||
"gegl:posterize", /* in gimp */
|
"gegl:posterize", /* in gimp */
|
||||||
"gegl:scale", /* in gimp */
|
|
||||||
"gegl:translate", /* pointless */
|
|
||||||
"gegl:shear", /* in gimp */
|
|
||||||
"gegl:rotate", /* in gimp */
|
"gegl:rotate", /* in gimp */
|
||||||
"gegl:transform", /* in gimp */
|
"gegl:scale", /* in gimp */
|
||||||
"gegl:value-invert", /* in gimp */
|
"gegl:shear", /* in gimp */
|
||||||
|
"gegl:text",
|
||||||
"gegl:threshold", /* in gimp */
|
"gegl:threshold", /* in gimp */
|
||||||
|
"gegl:transform", /* in gimp */
|
||||||
|
"gegl:translate", /* pointless */
|
||||||
|
"gegl:value-invert", /* in gimp */
|
||||||
|
"gegl:vector-stroke",
|
||||||
"gimp-",
|
"gimp-",
|
||||||
"gimp:"
|
"gimp:"
|
||||||
};
|
};
|
||||||
|
|
|
@ -527,6 +527,7 @@
|
||||||
</menu>
|
</menu>
|
||||||
<separator />
|
<separator />
|
||||||
<menuitem action="filters-color-to-alpha" />
|
<menuitem action="filters-color-to-alpha" />
|
||||||
|
<menuitem action="filters-color-temperature" />
|
||||||
<placeholder name="Modify" />
|
<placeholder name="Modify" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue