[gimp] libgimpbase: remove enum GimpBlendMode, it's not used any longer
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpbase: remove enum GimpBlendMode, it's not used any longer
- Date: Tue, 19 Nov 2019 20:32:06 +0000 (UTC)
commit 1be4ec2100372328b6ab2d6c2434cb6d2ea244cc
Author: Michael Natterer <mitch gimp org>
Date: Tue Nov 19 21:13:31 2019 +0100
libgimpbase: remove enum GimpBlendMode, it's not used any longer
devel-docs/libgimpbase/libgimpbase3-sections.txt | 3 ---
libgimp/gimpenums.c.tail | 2 --
libgimpbase/gimpbase.def | 1 -
libgimpbase/gimpbaseenums.c | 34 ------------------------
libgimpbase/gimpbaseenums.h | 22 ---------------
pdb/enums.pl | 10 -------
6 files changed, 72 deletions(-)
---
diff --git a/devel-docs/libgimpbase/libgimpbase3-sections.txt
b/devel-docs/libgimpbase/libgimpbase3-sections.txt
index 18e6900901..48cc3d31b8 100644
--- a/devel-docs/libgimpbase/libgimpbase3-sections.txt
+++ b/devel-docs/libgimpbase/libgimpbase3-sections.txt
@@ -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
diff --git a/libgimp/gimpenums.c.tail b/libgimp/gimpenums.c.tail
index 50ca3413d7..13b6a911c9 100644
--- a/libgimp/gimpenums.c.tail
+++ b/libgimp/gimpenums.c.tail
@@ -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",
diff --git a/libgimpbase/gimpbase.def b/libgimpbase/gimpbase.def
index 88dbb641c3..3e9f2cd43e 100644
--- a/libgimpbase/gimpbase.def
+++ b/libgimpbase/gimpbase.def
@@ -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
diff --git a/libgimpbase/gimpbaseenums.c b/libgimpbase/gimpbaseenums.c
index abbbe48ca4..cc70394955 100644
--- a/libgimpbase/gimpbaseenums.c
+++ b/libgimpbase/gimpbaseenums.c
@@ -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)
{
diff --git a/libgimpbase/gimpbaseenums.h b/libgimpbase/gimpbaseenums.h
index feefa52f32..e56107ee37 100644
--- a/libgimpbase/gimpbaseenums.h
+++ b/libgimpbase/gimpbaseenums.h
@@ -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
diff --git a/pdb/enums.pl b/pdb/enums.pl
index 80ade64347..21fe2e6101 100644
--- a/pdb/enums.pl
+++ b/pdb/enums.pl
@@ -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',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]