app, libgimp, pdb: have GimpTrcType into public libgimp.
It is being used as filter arguments in 2 GIMP filters (curves and levels) so we want to be able to send this enum type through the wire.
This commit is contained in:
parent
bbe5c16862
commit
09e8e45d07
5 changed files with 35 additions and 3 deletions
|
|
@ -480,7 +480,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" >*/
|
||||
|
|
|
|||
|
|
@ -1056,6 +1056,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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -862,6 +862,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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue