diff --git a/app/core/core-enums.h b/app/core/core-enums.h index 5db3dfd541..f0411a67f4 100644 --- a/app/core/core-enums.h +++ b/app/core/core-enums.h @@ -482,7 +482,7 @@ typedef enum /*< pdb-skip >*/ GType gimp_trc_type_get_type (void) G_GNUC_CONST; -typedef enum /*< pdb-skip >*/ +typedef enum { GIMP_TRC_LINEAR, /*< desc="Linear" >*/ GIMP_TRC_NON_LINEAR, /*< desc="Non-Linear" >*/ diff --git a/libgimp/gimp.def b/libgimp/gimp.def index 7e4b03c35b..836bfaa87e 100644 --- a/libgimp/gimp.def +++ b/libgimp/gimp.def @@ -1059,6 +1059,7 @@ EXPORTS gimp_thumbnail_procedure_new gimp_tile_height gimp_tile_width + gimp_trc_type_get_type gimp_unit_new gimp_user_time gimp_vector_load_procedure_extract_dimensions diff --git a/libgimp/gimpenums.c.tail b/libgimp/gimpenums.c.tail index dd3602236c..b1c0aa0e0a 100644 --- a/libgimp/gimpenums.c.tail +++ b/libgimp/gimpenums.c.tail @@ -64,7 +64,8 @@ static const GimpGetTypeFunc get_type_funcs[] = gimp_text_justification_get_type, gimp_transfer_mode_get_type, gimp_transform_direction_get_type, - gimp_transform_resize_get_type + gimp_transform_resize_get_type, + gimp_trc_type_get_type }; static const gchar * const type_names[] = @@ -130,7 +131,8 @@ static const gchar * const type_names[] = "GimpTextJustification", "GimpTransferMode", "GimpTransformDirection", - "GimpTransformResize" + "GimpTransformResize", + "GimpTRCType" }; static gboolean enums_initialized = FALSE; diff --git a/libgimp/gimpenums.h b/libgimp/gimpenums.h index fcab197794..5e78b770f1 100644 --- a/libgimp/gimpenums.h +++ b/libgimp/gimpenums.h @@ -278,6 +278,26 @@ typedef enum } GimpLayerMode; +#define GIMP_TYPE_TRC_TYPE (gimp_trc_type_get_type ()) + +GType gimp_trc_type_get_type (void) G_GNUC_CONST; + +/** + * GimpTRCType: + * @GIMP_TRC_LINEAR: GIMP_TRC_LINEAR + * @GIMP_TRC_NON_LINEAR: GIMP_TRC_NON_LINEAR + * @GIMP_TRC_PERCEPTUAL: GIMP_TRC_PERCEPTUAL + * + * Extracted from app/core/core-enums.h + **/ +typedef enum +{ + GIMP_TRC_LINEAR, + GIMP_TRC_NON_LINEAR, + GIMP_TRC_PERCEPTUAL +} GimpTRCType; + + void gimp_enums_init (void); const gchar ** gimp_enums_get_type_names (gint *n_type_names); diff --git a/pdb/enums.pl b/pdb/enums.pl index 8c4259522e..6e7d29748a 100644 --- a/pdb/enums.pl +++ b/pdb/enums.pl @@ -861,6 +861,15 @@ package Gimp::CodeGen::enums; GIMP_HISTOGRAM_ALPHA => '4', GIMP_HISTOGRAM_LUMINANCE => '5' } }, + GimpTRCType => + { contig => 1, + header => 'core/core-enums.h', + symbols => [ qw(GIMP_TRC_LINEAR GIMP_TRC_NON_LINEAR + GIMP_TRC_PERCEPTUAL) ], + mapping => { GIMP_TRC_LINEAR => '0', + GIMP_TRC_NON_LINEAR => '1', + GIMP_TRC_PERCEPTUAL => '2' } + }, GimpBrushApplicationMode => { contig => 1, header => 'paint/paint-enums.h',