mirror of https://github.com/GNOME/gimp.git
libgimpbase: remove enum GimpBlendMode, it's not used any longer
This commit is contained in:
parent
c287fb6239
commit
1be4ec2100
|
@ -18,7 +18,6 @@ gimp_flags_set_value_descriptions
|
||||||
<SECTION>
|
<SECTION>
|
||||||
<FILE>gimpbaseenums</FILE>
|
<FILE>gimpbaseenums</FILE>
|
||||||
GimpAddMaskType
|
GimpAddMaskType
|
||||||
GimpBlendMode
|
|
||||||
GimpBrushGeneratedShape
|
GimpBrushGeneratedShape
|
||||||
GimpCapStyle
|
GimpCapStyle
|
||||||
GimpChannelOps
|
GimpChannelOps
|
||||||
|
@ -73,7 +72,6 @@ GimpTransformResize
|
||||||
GimpVectorsStrokeType
|
GimpVectorsStrokeType
|
||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
GIMP_TYPE_ADD_MASK_TYPE
|
GIMP_TYPE_ADD_MASK_TYPE
|
||||||
GIMP_TYPE_BLEND_MODE
|
|
||||||
GIMP_TYPE_BRUSH_GENERATED_SHAPE
|
GIMP_TYPE_BRUSH_GENERATED_SHAPE
|
||||||
GIMP_TYPE_CAP_STYLE
|
GIMP_TYPE_CAP_STYLE
|
||||||
GIMP_TYPE_CHANNEL_OPS
|
GIMP_TYPE_CHANNEL_OPS
|
||||||
|
@ -146,7 +144,6 @@ gimp_orientation_type_get_type
|
||||||
gimp_precision_get_type
|
gimp_precision_get_type
|
||||||
gimp_rotation_type_get_type
|
gimp_rotation_type_get_type
|
||||||
gimp_select_criterion_get_type
|
gimp_select_criterion_get_type
|
||||||
gimp_blend_mode_get_type
|
|
||||||
gimp_channel_ops_get_type
|
gimp_channel_ops_get_type
|
||||||
gimp_channel_type_get_type
|
gimp_channel_type_get_type
|
||||||
gimp_check_size_get_type
|
gimp_check_size_get_type
|
||||||
|
|
|
@ -5,7 +5,6 @@ static const GimpGetTypeFunc get_type_funcs[] =
|
||||||
{
|
{
|
||||||
gegl_distance_metric_get_type,
|
gegl_distance_metric_get_type,
|
||||||
gimp_add_mask_type_get_type,
|
gimp_add_mask_type_get_type,
|
||||||
gimp_blend_mode_get_type,
|
|
||||||
gimp_brush_application_mode_get_type,
|
gimp_brush_application_mode_get_type,
|
||||||
gimp_brush_generated_shape_get_type,
|
gimp_brush_generated_shape_get_type,
|
||||||
gimp_cap_style_get_type,
|
gimp_cap_style_get_type,
|
||||||
|
@ -70,7 +69,6 @@ static const gchar * const type_names[] =
|
||||||
{
|
{
|
||||||
"GeglDistanceMetric",
|
"GeglDistanceMetric",
|
||||||
"GimpAddMaskType",
|
"GimpAddMaskType",
|
||||||
"GimpBlendMode",
|
|
||||||
"GimpBrushApplicationMode",
|
"GimpBrushApplicationMode",
|
||||||
"GimpBrushGeneratedShape",
|
"GimpBrushGeneratedShape",
|
||||||
"GimpCapStyle",
|
"GimpCapStyle",
|
||||||
|
|
|
@ -7,7 +7,6 @@ EXPORTS
|
||||||
gimp_array_new
|
gimp_array_new
|
||||||
gimp_base_compat_enums_init
|
gimp_base_compat_enums_init
|
||||||
gimp_base_init
|
gimp_base_init
|
||||||
gimp_blend_mode_get_type
|
|
||||||
gimp_brush_generated_shape_get_type
|
gimp_brush_generated_shape_get_type
|
||||||
gimp_cache_directory
|
gimp_cache_directory
|
||||||
gimp_canonicalize_identifier
|
gimp_canonicalize_identifier
|
||||||
|
|
|
@ -48,40 +48,6 @@ gimp_add_mask_type_get_type (void)
|
||||||
return type;
|
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
|
GType
|
||||||
gimp_brush_generated_shape_get_type (void)
|
gimp_brush_generated_shape_get_type (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -62,28 +62,6 @@ typedef enum
|
||||||
} GimpAddMaskType;
|
} 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:
|
* GimpBrushGeneratedShape:
|
||||||
* @GIMP_BRUSH_GENERATED_CIRCLE: Circle
|
* @GIMP_BRUSH_GENERATED_CIRCLE: Circle
|
||||||
|
|
10
pdb/enums.pl
10
pdb/enums.pl
|
@ -44,16 +44,6 @@ package Gimp::CodeGen::enums;
|
||||||
GIMP_ADD_MASK_COPY => '5',
|
GIMP_ADD_MASK_COPY => '5',
|
||||||
GIMP_ADD_MASK_CHANNEL => '6' }
|
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 =>
|
GimpBrushGeneratedShape =>
|
||||||
{ contig => 1,
|
{ contig => 1,
|
||||||
header => 'libgimpbase/gimpbaseenums.h',
|
header => 'libgimpbase/gimpbaseenums.h',
|
||||||
|
|
Loading…
Reference in New Issue