Commit 1be4ec21 authored by Michael Natterer's avatar Michael Natterer 😴

libgimpbase: remove enum GimpBlendMode, it's not used any longer

parent c287fb62
......@@ -18,7 +18,6 @@ gimp_flags_set_value_descriptions
<SECTION>
<FILE>gimpbaseenums</FILE>
GimpAddMaskType
GimpBlendMode
GimpBrushGeneratedShape
GimpCapStyle
GimpChannelOps
......@@ -73,7 +72,6 @@ GimpTransformResize
GimpVectorsStrokeType
<SUBSECTION Standard>
GIMP_TYPE_ADD_MASK_TYPE
GIMP_TYPE_BLEND_MODE
GIMP_TYPE_BRUSH_GENERATED_SHAPE
GIMP_TYPE_CAP_STYLE
GIMP_TYPE_CHANNEL_OPS
......@@ -146,7 +144,6 @@ gimp_orientation_type_get_type
gimp_precision_get_type
gimp_rotation_type_get_type
gimp_select_criterion_get_type
gimp_blend_mode_get_type
gimp_channel_ops_get_type
gimp_channel_type_get_type
gimp_check_size_get_type
......
......@@ -5,7 +5,6 @@ static const GimpGetTypeFunc get_type_funcs[] =
{
gegl_distance_metric_get_type,
gimp_add_mask_type_get_type,
gimp_blend_mode_get_type,
gimp_brush_application_mode_get_type,
gimp_brush_generated_shape_get_type,
gimp_cap_style_get_type,
......@@ -70,7 +69,6 @@ static const gchar * const type_names[] =
{
"GeglDistanceMetric",
"GimpAddMaskType",
"GimpBlendMode",
"GimpBrushApplicationMode",
"GimpBrushGeneratedShape",
"GimpCapStyle",
......
......@@ -7,7 +7,6 @@ EXPORTS
gimp_array_new
gimp_base_compat_enums_init
gimp_base_init
gimp_blend_mode_get_type
gimp_brush_generated_shape_get_type
gimp_cache_directory
gimp_canonicalize_identifier
......
......@@ -48,40 +48,6 @@ gimp_add_mask_type_get_type (void)
return type;
}
GType
gimp_blend_mode_get_type (void)
{
static const GEnumValue values[] =
{
{ GIMP_BLEND_FG_BG_RGB, "GIMP_BLEND_FG_BG_RGB", "fg-bg-rgb" },
{ GIMP_BLEND_FG_BG_HSV, "GIMP_BLEND_FG_BG_HSV", "fg-bg-hsv" },
{ GIMP_BLEND_FG_TRANSPARENT, "GIMP_BLEND_FG_TRANSPARENT", "fg-transparent" },
{ GIMP_BLEND_CUSTOM, "GIMP_BLEND_CUSTOM", "custom" },
{ 0, NULL, NULL }
};
static const GimpEnumDesc descs[] =
{
{ GIMP_BLEND_FG_BG_RGB, NC_("blend-mode", "FG to BG (RGB)"), NULL },
{ GIMP_BLEND_FG_BG_HSV, NC_("blend-mode", "FG to BG (HSV)"), NULL },
{ GIMP_BLEND_FG_TRANSPARENT, NC_("blend-mode", "FG to transparent"), NULL },
{ GIMP_BLEND_CUSTOM, NC_("blend-mode", "Custom gradient"), NULL },
{ 0, NULL, NULL }
};
static GType type = 0;
if (G_UNLIKELY (! type))
{
type = g_enum_register_static ("GimpBlendMode", values);
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
gimp_type_set_translation_context (type, "blend-mode");
gimp_enum_set_value_descriptions (type, descs);
}
return type;
}
GType
gimp_brush_generated_shape_get_type (void)
{
......
......@@ -62,28 +62,6 @@ typedef enum
} GimpAddMaskType;
/**
* GimpBlendMode:
* @GIMP_BLEND_FG_BG_RGB: FG to BG (RGB)
* @GIMP_BLEND_FG_BG_HSV: FG to BG (HSV)
* @GIMP_BLEND_FG_TRANSPARENT: FG to transparent
* @GIMP_BLEND_CUSTOM: Custom gradient
*
* Types of gradients.
**/
#define GIMP_TYPE_BLEND_MODE (gimp_blend_mode_get_type ())
GType gimp_blend_mode_get_type (void) G_GNUC_CONST;
typedef enum
{
GIMP_BLEND_FG_BG_RGB, /*< desc="FG to BG (RGB)" >*/
GIMP_BLEND_FG_BG_HSV, /*< desc="FG to BG (HSV)" >*/
GIMP_BLEND_FG_TRANSPARENT, /*< desc="FG to transparent" >*/
GIMP_BLEND_CUSTOM /*< desc="Custom gradient" >*/
} GimpBlendMode;
/**
* GimpBrushGeneratedShape:
* @GIMP_BRUSH_GENERATED_CIRCLE: Circle
......
......@@ -44,16 +44,6 @@ package Gimp::CodeGen::enums;
GIMP_ADD_MASK_COPY => '5',
GIMP_ADD_MASK_CHANNEL => '6' }
},
GimpBlendMode =>
{ contig => 1,
header => 'libgimpbase/gimpbaseenums.h',
symbols => [ qw(GIMP_BLEND_FG_BG_RGB GIMP_BLEND_FG_BG_HSV
GIMP_BLEND_FG_TRANSPARENT GIMP_BLEND_CUSTOM) ],
mapping => { GIMP_BLEND_FG_BG_RGB => '0',
GIMP_BLEND_FG_BG_HSV => '1',
GIMP_BLEND_FG_TRANSPARENT => '2',
GIMP_BLEND_CUSTOM => '3' }
},
GimpBrushGeneratedShape =>
{ contig => 1,
header => 'libgimpbase/gimpbaseenums.h',
......
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