Commit d434c601 authored by Michael Natterer's avatar Michael Natterer 😴
Browse files

app, menus: add some more GEGL filters to the menus

and blacklist some others in the GEGL tool.
parent c175afbc
......@@ -172,6 +172,11 @@ static const GimpStringActionEntry filters_actions[] =
"gegl:color-to-alpha",
GIMP_HELP_FILTER_COLOR_TO_ALPHA },
{ "filters-component-extract", GIMP_STOCK_GEGL,
NC_("filters-action", "_Extract Component..."), NULL, NULL,
"gegl:component-extract",
GIMP_HELP_FILTER_COMPONENT_EXTRACT },
{ "filters-convolution-matrix", GIMP_STOCK_GEGL,
NC_("filters-action", "_Convolution Matrix..."), NULL, NULL,
"gegl:convolution-matrix",
......@@ -432,6 +437,11 @@ static const GimpStringActionEntry filters_actions[] =
"gegl:red-eye-removal",
GIMP_HELP_FILTER_RED_EYE_REMOVAL },
{ "filters-rgb-clip", GIMP_STOCK_GEGL,
NC_("filters-action", "RGB _Clip..."), NULL, NULL,
"gegl:rgb-clip",
GIMP_HELP_FILTER_RGB_CLIP },
{ "filters-ripple", GIMP_STOCK_GEGL,
NC_("filters-action", "_Ripple..."), NULL, NULL,
"gegl:ripple",
......@@ -462,6 +472,11 @@ static const GimpStringActionEntry filters_actions[] =
"gegl:sinus",
GIMP_HELP_FILTER_SINUS },
{ "filters-slic", GIMP_STOCK_GEGL,
NC_("filters-action", "_Simple Linear Iterative Clustering..."), NULL, NULL,
"gegl:slic",
GIMP_HELP_FILTER_SLIC },
{ "filters-softglow", GIMP_STOCK_GEGL,
NC_("filters-action", "_Softglow..."), NULL, NULL,
"gegl:softglow",
......@@ -522,6 +537,11 @@ static const GimpStringActionEntry filters_actions[] =
"gegl:vignette",
GIMP_HELP_FILTER_VIGNETTE },
{ "filters-waterpixels", GIMP_STOCK_GEGL,
NC_("filters-action", "_Waterpixels..."), NULL, NULL,
"gegl:waterpixels",
GIMP_HELP_FILTER_WATERPIXELS },
{ "filters-waves", GIMP_STOCK_GEGL,
NC_("filters-action", "_Waves..."), NULL, NULL,
"gegl:waves",
......@@ -674,6 +694,7 @@ filters_actions_update (GimpActionGroup *group,
SET_SENSITIVE ("filters-color-rotate", writable);
SET_SENSITIVE ("filters-color-temperature", writable && !gray);
SET_SENSITIVE ("filters-color-to-alpha", writable && !gray && alpha);
SET_SENSITIVE ("filters-component-extract", writable);
SET_SENSITIVE ("filters-convolution-matrix", writable);
SET_SENSITIVE ("filters-cubism", writable);
SET_SENSITIVE ("filters-deinterlace", writable);
......@@ -726,12 +747,14 @@ filters_actions_update (GimpActionGroup *group,
SET_SENSITIVE ("filters-polar-coordinates", writable);
SET_SENSITIVE ("filters-posterize", writable);
SET_SENSITIVE ("filters-red-eye-removal", writable && !gray);
SET_SENSITIVE ("filters-rgb-clip", writable);
SET_SENSITIVE ("filters-ripple", writable);
SET_SENSITIVE ("filters-saturation", writable && !gray);
SET_SENSITIVE ("filters-semi-flatten", writable && alpha);
SET_SENSITIVE ("filters-sepia", writable && !gray);
SET_SENSITIVE ("filters-shift", writable);
SET_SENSITIVE ("filters-sinus", writable);
SET_SENSITIVE ("filters-slic", writable);
SET_SENSITIVE ("filters-softglow", writable);
SET_SENSITIVE ("filters-stretch-contrast", writable);
SET_SENSITIVE ("filters-stretch-contrast-hsv", writable);
......@@ -744,6 +767,7 @@ filters_actions_update (GimpActionGroup *group,
SET_SENSITIVE ("filters-value-propagate", writable);
SET_SENSITIVE ("filters-video-degradation", writable);
SET_SENSITIVE ("filters-vignette", writable);
SET_SENSITIVE ("filters-waterpixels", writable);
SET_SENSITIVE ("filters-waves", writable);
SET_SENSITIVE ("filters-whirl-pinch", writable);
SET_SENSITIVE ("filters-wind", writable);
......
......@@ -539,6 +539,7 @@ sanity_check_gegl_ops (void)
"gegl:color-rotate",
"gegl:color-temperature",
"gegl:color-to-alpha",
"gegl:component-extract",
"gegl:convolution-matrix",
"gegl:copy-buffer",
"gegl:crop",
......@@ -597,6 +598,7 @@ sanity_check_gegl_ops (void)
"gegl:pixelize",
"gegl:polar-coordinates",
"gegl:red-eye-removal",
"gegl:rgb-clip",
"gegl:ripple",
"gegl:saturation",
"gegl:scale-ratio",
......@@ -606,6 +608,7 @@ sanity_check_gegl_ops (void)
"gegl:simplex-noise",
"gegl:shift",
"gegl:sinus",
"gegl:slic",
"gegl:softglow",
"gegl:stretch-contrast",
"gegl:stretch-contrast-hsv",
......@@ -623,6 +626,7 @@ sanity_check_gegl_ops (void)
"gegl:video-degradation",
"gegl:vignette",
"gegl:warp",
"gegl:waterpixels",
"gegl:wavelet-blur",
"gegl:waves",
"gegl:whirl-pinch",
......
......@@ -127,6 +127,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
"gegl:color-rotate",
"gegl:color-temperature",
"gegl:color-to-alpha",
"gegl:component-extract",
"gegl:convolution-matrix",
"gegl:cubism",
"gegl:deinterlace",
......@@ -178,12 +179,14 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
"gegl:plasma",
"gegl:polar-coordinates",
"gegl:red-eye-removal",
"gegl:rgb-clip",
"gegl:ripple",
"gegl:saturation",
"gegl:sepia",
"gegl:shift",
"gegl:simplex-noise",
"gegl:sinus",
"gegl:slic",
"gegl:softglow",
"gegl:stretch-contrast",
"gegl:stretch-contrast-hsv",
......@@ -197,6 +200,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
"gegl:value-propagate",
"gegl:video-degradation",
"gegl:vignette",
"gegl:waterpixels",
"gegl:wavelet-blur",
"gegl:waves",
"gegl:whirl-pinch",
......@@ -212,16 +216,20 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
"gegl:layer", /* we use gimp's ops */
"gegl:lcms-from-profile", /* not usable here */
"gegl:linear-gradient", /* we use the blend tool */
"gegl:map-absolute", /* pointless */
"gegl:map-relative", /* pointless */
"gegl:matting-global", /* used in the foreground select tool */
"gegl:matting-levin", /* used in the foreground select tool */
"gegl:opacity", /* poinless */
"gegl:path",
"gegl:posterize", /* we use gimp's op */
"gegl:radial-gradient", /* we use the blend tool */
"gegl:rectangle", /* pointless */
"gegl:seamless-clone", /* used in the seamless clone tool */
"gegl:text", /* we use gimp's text rendering */
"gegl:threshold", /* we use gimp's op */
"gegl:tile", /* pointless */
"gegl:unpremus", /* pointless */
"gegl:vector-stroke",
};
......
......@@ -343,10 +343,10 @@
#define GIMP_HELP_FILTER_CHECKERBOARD "gimp-filter-checkerboard"
#define GIMP_HELP_FILTER_COLOR_ENHANCE "gimp-filter-color-enhance"
#define GIMP_HELP_FILTER_COLOR_EXCHANGE "gimp-filter-color-exchange"
#define GIMP_HELP_FILTER_DITHER "gimp-filter-dither"
#define GIMP_HELP_FILTER_COLOR_ROTATE "gimp-filter-color-rotate"
#define GIMP_HELP_FILTER_COLOR_TEMPERATURE "gimp-filter-color-temperature"
#define GIMP_HELP_FILTER_COLOR_TO_ALPHA "gimp-filter-color-to-alpha"
#define GIMP_HELP_FILTER_COMPONENT_EXTRACT "gimp-filter-component-extract"
#define GIMP_HELP_FILTER_CONVOLUTION_MATRIX "gimp-filter-convolution-matrix"
#define GIMP_HELP_FILTER_CUBISM "gimp-filter-cubism"
#define GIMP_HELP_FILTER_DEINTERLACE "gimp-filter-deinterlace"
......@@ -355,6 +355,7 @@
#define GIMP_HELP_FILTER_DIFFRACTION_PATTERNS "gimp-filter-diffraction-patterns"
#define GIMP_HELP_FILTER_DISPLACE "gimp-filter-displace"
#define GIMP_HELP_FILTER_DISTANCE_MAP "gimp-filter-distance-map"
#define GIMP_HELP_FILTER_DITHER "gimp-filter-dither"
#define GIMP_HELP_FILTER_DROPSHADOW "gimp-filter-dropshadow"
#define GIMP_HELP_FILTER_EDGE "gimp-filter-edge"
#define GIMP_HELP_FILTER_EDGE_LAPLACE "gimp-filter-edge-laplace"
......@@ -399,12 +400,14 @@
#define GIMP_HELP_FILTER_POLAR_COORDINATES "gimp-filter-polar-coordinates"
#define GIMP_HELP_FILTER_POSTERIZE "gimp-filter-posterize"
#define GIMP_HELP_FILTER_RED_EYE_REMOVAL "gimp-filter-red-eye-removal"
#define GIMP_HELP_FILTER_RGB_CLIP "gimp-filter-rgb-clip"
#define GIMP_HELP_FILTER_RIPPLE "gimp-filter-ripple"
#define GIMP_HELP_FILTER_SATURATION "gimp-filter-saturation"
#define GIMP_HELP_FILTER_SEMI_FLATTEN "gimp-filter-semi-flatten"
#define GIMP_HELP_FILTER_SEPIA "gimp-filter-sepia"
#define GIMP_HELP_FILTER_SHIFT "gimp-filter-shift"
#define GIMP_HELP_FILTER_SINUS "gimp-filter-sinus"
#define GIMP_HELP_FILTER_SLIC "gimp-filter-slic"
#define GIMP_HELP_FILTER_SOFTGLOW "gimp-filter-softglow"
#define GIMP_HELP_FILTER_STRETCH_CONTRAST "gimp-filter-stretch-contrast"
#define GIMP_HELP_FILTER_STRETCH_CONTRAST_HSV "gimp-filter-stretch-contrast-hsv"
......@@ -417,6 +420,7 @@
#define GIMP_HELP_FILTER_VALUE_PROPAGATE "gimp-filter-value-propagate"
#define GIMP_HELP_FILTER_VIDEO_DEGRADATION "gimp-filter-video-degradation"
#define GIMP_HELP_FILTER_VIGNETTE "gimp-filter-vignette"
#define GIMP_HELP_FILTER_WATERPIXELS "gimp-filter-waterpixels"
#define GIMP_HELP_FILTER_WAVES "gimp-filter-waves"
#define GIMP_HELP_FILTER_WHIRL_PINCH "gimp-filter-whirl-pinch"
#define GIMP_HELP_FILTER_WIND "gimp-filter-wind"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment