Commit ee42d8f5 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

added still unused flags type GimpDirtyMask.

2004-07-28  Michael Natterer  <mitch@gimp.org>

	* app/core/core-enums.h: added still unused flags type
	GimpDirtyMask.

	* app/base/Makefile.am
	* app/core/Makefile.am
	* app/display/Makefile.am
	* app/paint/Makefile.am
	* app/text/Makefile.am
	* app/tools/Makefile.am
	* app/widgets/Makefile.am
	* libgimpthumb/Makefile.am: changed calls to gimp-mkenums to
	support GTypeFlags and to make the value arrays private to the
	get_type() functions.

	* app/base/base-enums.c
	* app/core/core-enums.c
	* app/display/display-enums.c
	* app/paint/paint-enums.c
	* app/text/text-enums.c
	* app/tools/tools-enums.c
	* app/widgets/widgets-enums.c: regenerated.
parent 932b4567
2004-07-28 Michael Natterer <mitch@gimp.org>
* app/core/core-enums.h: added still unused flags type
GimpDirtyMask.
* app/base/Makefile.am
* app/core/Makefile.am
* app/display/Makefile.am
* app/paint/Makefile.am
* app/text/Makefile.am
* app/tools/Makefile.am
* app/widgets/Makefile.am
* libgimpthumb/Makefile.am: changed calls to gimp-mkenums to
support GTypeFlags and to make the value arrays private to the
get_type() functions.
* app/base/base-enums.c
* app/core/core-enums.c
* app/display/display-enums.c
* app/paint/paint-enums.c
* app/text/text-enums.c
* app/tools/tools-enums.c
* app/widgets/widgets-enums.c: regenerated.
2004-07-28 Michael Natterer <mitch@gimp.org>
* app/paint/gimpclone.c: converted tabs to spaces.
......
......@@ -92,9 +92,9 @@ $(srcdir)/base-enums.c: $(srcdir)/base-enums.h $(GIMP_MKENUMS)
$(GIMP_MKENUMS) \
--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"base-enums.h\"\n#include \"gimp-intl.h\"" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{" \
--vprod " { @VALUENAME@, @valuedesc@, \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n};\n\nGType\n@enum_name@_get_type (void)\n{\n static GType enum_type = 0;\n\n if (!enum_type)\n enum_type = g_enum_register_static (\"@EnumName@\", @enum_name@_enum_values);\n\n return enum_type;\n}\n" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
--vprod " { @VALUENAME@, @valuedesc@, \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (! type)\n type = g_@type@_register_static (\"@EnumName@\", values);\n\n return type;\n}\n" \
$(srcdir)/base-enums.h > xgen-bec \
&& cp xgen-bec $(@F) \
&& rm -f xgen-bec
......@@ -7,169 +7,162 @@
#include "gimp-intl.h"
/* enumerations from "./base-enums.h" */
static const GEnumValue gimp_check_size_enum_values[] =
{
{ GIMP_SMALL_CHECKS, N_("Small"), "small-checks" },
{ GIMP_MEDIUM_CHECKS, N_("Medium"), "medium-checks" },
{ GIMP_LARGE_CHECKS, N_("Large"), "large-checks" },
{ 0, NULL, NULL }
};
GType
gimp_check_size_get_type (void)
{
static GType enum_type = 0;
if (!enum_type)
enum_type = g_enum_register_static ("GimpCheckSize", gimp_check_size_enum_values);
static const GEnumValue values[] =
{
{ GIMP_SMALL_CHECKS, N_("Small"), "small-checks" },
{ GIMP_MEDIUM_CHECKS, N_("Medium"), "medium-checks" },
{ GIMP_LARGE_CHECKS, N_("Large"), "large-checks" },
{ 0, NULL, NULL }
};
return enum_type;
}
static GType type = 0;
if (! type)
type = g_enum_register_static ("GimpCheckSize", values);
static const GEnumValue gimp_check_type_enum_values[] =
{
{ GIMP_LIGHT_CHECKS, N_("Light Checks"), "light-checks" },
{ GIMP_GRAY_CHECKS, N_("Mid-Tone Checks"), "gray-checks" },
{ GIMP_DARK_CHECKS, N_("Dark Checks"), "dark-checks" },
{ GIMP_WHITE_ONLY, N_("White Only"), "white-only" },
{ GIMP_GRAY_ONLY, N_("Gray Only"), "gray-only" },
{ GIMP_BLACK_ONLY, N_("Black Only"), "black-only" },
{ 0, NULL, NULL }
};
return type;
}
GType
gimp_check_type_get_type (void)
{
static GType enum_type = 0;
if (!enum_type)
enum_type = g_enum_register_static ("GimpCheckType", gimp_check_type_enum_values);
return enum_type;
static const GEnumValue values[] =
{
{ GIMP_LIGHT_CHECKS, N_("Light Checks"), "light-checks" },
{ GIMP_GRAY_CHECKS, N_("Mid-Tone Checks"), "gray-checks" },
{ GIMP_DARK_CHECKS, N_("Dark Checks"), "dark-checks" },
{ GIMP_WHITE_ONLY, N_("White Only"), "white-only" },
{ GIMP_GRAY_ONLY, N_("Gray Only"), "gray-only" },
{ GIMP_BLACK_ONLY, N_("Black Only"), "black-only" },
{ 0, NULL, NULL }
};
static GType type = 0;
if (! type)
type = g_enum_register_static ("GimpCheckType", values);
return type;
}
static const GEnumValue gimp_curve_type_enum_values[] =
{
{ GIMP_CURVE_SMOOTH, N_("Smooth"), "smooth" },
{ GIMP_CURVE_FREE, N_("Freehand"), "free" },
{ 0, NULL, NULL }
};
GType
gimp_curve_type_get_type (void)
{
static GType enum_type = 0;
static const GEnumValue values[] =
{
{ GIMP_CURVE_SMOOTH, N_("Smooth"), "smooth" },
{ GIMP_CURVE_FREE, N_("Freehand"), "free" },
{ 0, NULL, NULL }
};
if (!enum_type)
enum_type = g_enum_register_static ("GimpCurveType", gimp_curve_type_enum_values);
return enum_type;
}
static GType type = 0;
if (! type)
type = g_enum_register_static ("GimpCurveType", values);
static const GEnumValue gimp_histogram_channel_enum_values[] =
{
{ GIMP_HISTOGRAM_VALUE, N_("Value"), "value" },
{ GIMP_HISTOGRAM_RED, N_("Red"), "red" },
{ GIMP_HISTOGRAM_GREEN, N_("Green"), "green" },
{ GIMP_HISTOGRAM_BLUE, N_("Blue"), "blue" },
{ GIMP_HISTOGRAM_ALPHA, N_("Alpha"), "alpha" },
{ GIMP_HISTOGRAM_RGB, N_("RGB"), "rgb" },
{ 0, NULL, NULL }
};
return type;
}
GType
gimp_histogram_channel_get_type (void)
{
static GType enum_type = 0;
if (!enum_type)
enum_type = g_enum_register_static ("GimpHistogramChannel", gimp_histogram_channel_enum_values);
return enum_type;
static const GEnumValue values[] =
{
{ GIMP_HISTOGRAM_VALUE, N_("Value"), "value" },
{ GIMP_HISTOGRAM_RED, N_("Red"), "red" },
{ GIMP_HISTOGRAM_GREEN, N_("Green"), "green" },
{ GIMP_HISTOGRAM_BLUE, N_("Blue"), "blue" },
{ GIMP_HISTOGRAM_ALPHA, N_("Alpha"), "alpha" },
{ GIMP_HISTOGRAM_RGB, N_("RGB"), "rgb" },
{ 0, NULL, NULL }
};
static GType type = 0;
if (! type)
type = g_enum_register_static ("GimpHistogramChannel", values);
return type;
}
static const GEnumValue gimp_interpolation_type_enum_values[] =
{
{ GIMP_INTERPOLATION_NONE, N_("None (Fastest)"), "none" },
{ GIMP_INTERPOLATION_LINEAR, N_("Linear"), "linear" },
{ GIMP_INTERPOLATION_CUBIC, N_("Cubic (Best)"), "cubic" },
{ 0, NULL, NULL }
};
GType
gimp_interpolation_type_get_type (void)
{
static GType enum_type = 0;
if (!enum_type)
enum_type = g_enum_register_static ("GimpInterpolationType", gimp_interpolation_type_enum_values);
static const GEnumValue values[] =
{
{ GIMP_INTERPOLATION_NONE, N_("None (Fastest)"), "none" },
{ GIMP_INTERPOLATION_LINEAR, N_("Linear"), "linear" },
{ GIMP_INTERPOLATION_CUBIC, N_("Cubic (Best)"), "cubic" },
{ 0, NULL, NULL }
};
return enum_type;
}
static GType type = 0;
if (! type)
type = g_enum_register_static ("GimpInterpolationType", values);
static const GEnumValue gimp_layer_mode_effects_enum_values[] =
{
{ GIMP_NORMAL_MODE, "GIMP_NORMAL_MODE", "normal-mode" },
{ GIMP_DISSOLVE_MODE, "GIMP_DISSOLVE_MODE", "dissolve-mode" },
{ GIMP_BEHIND_MODE, "GIMP_BEHIND_MODE", "behind-mode" },
{ GIMP_MULTIPLY_MODE, "GIMP_MULTIPLY_MODE", "multiply-mode" },
{ GIMP_SCREEN_MODE, "GIMP_SCREEN_MODE", "screen-mode" },
{ GIMP_OVERLAY_MODE, "GIMP_OVERLAY_MODE", "overlay-mode" },
{ GIMP_DIFFERENCE_MODE, "GIMP_DIFFERENCE_MODE", "difference-mode" },
{ GIMP_ADDITION_MODE, "GIMP_ADDITION_MODE", "addition-mode" },
{ GIMP_SUBTRACT_MODE, "GIMP_SUBTRACT_MODE", "subtract-mode" },
{ GIMP_DARKEN_ONLY_MODE, "GIMP_DARKEN_ONLY_MODE", "darken-only-mode" },
{ GIMP_LIGHTEN_ONLY_MODE, "GIMP_LIGHTEN_ONLY_MODE", "lighten-only-mode" },
{ GIMP_HUE_MODE, "GIMP_HUE_MODE", "hue-mode" },
{ GIMP_SATURATION_MODE, "GIMP_SATURATION_MODE", "saturation-mode" },
{ GIMP_COLOR_MODE, "GIMP_COLOR_MODE", "color-mode" },
{ GIMP_VALUE_MODE, "GIMP_VALUE_MODE", "value-mode" },
{ GIMP_DIVIDE_MODE, "GIMP_DIVIDE_MODE", "divide-mode" },
{ GIMP_DODGE_MODE, "GIMP_DODGE_MODE", "dodge-mode" },
{ GIMP_BURN_MODE, "GIMP_BURN_MODE", "burn-mode" },
{ GIMP_HARDLIGHT_MODE, "GIMP_HARDLIGHT_MODE", "hardlight-mode" },
{ GIMP_SOFTLIGHT_MODE, "GIMP_SOFTLIGHT_MODE", "softlight-mode" },
{ GIMP_GRAIN_EXTRACT_MODE, "GIMP_GRAIN_EXTRACT_MODE", "grain-extract-mode" },
{ GIMP_GRAIN_MERGE_MODE, "GIMP_GRAIN_MERGE_MODE", "grain-merge-mode" },
{ GIMP_COLOR_ERASE_MODE, "GIMP_COLOR_ERASE_MODE", "color-erase-mode" },
{ 0, NULL, NULL }
};
return type;
}
GType
gimp_layer_mode_effects_get_type (void)
{
static GType enum_type = 0;
if (!enum_type)
enum_type = g_enum_register_static ("GimpLayerModeEffects", gimp_layer_mode_effects_enum_values);
return enum_type;
static const GEnumValue values[] =
{
{ GIMP_NORMAL_MODE, "GIMP_NORMAL_MODE", "normal-mode" },
{ GIMP_DISSOLVE_MODE, "GIMP_DISSOLVE_MODE", "dissolve-mode" },
{ GIMP_BEHIND_MODE, "GIMP_BEHIND_MODE", "behind-mode" },
{ GIMP_MULTIPLY_MODE, "GIMP_MULTIPLY_MODE", "multiply-mode" },
{ GIMP_SCREEN_MODE, "GIMP_SCREEN_MODE", "screen-mode" },
{ GIMP_OVERLAY_MODE, "GIMP_OVERLAY_MODE", "overlay-mode" },
{ GIMP_DIFFERENCE_MODE, "GIMP_DIFFERENCE_MODE", "difference-mode" },
{ GIMP_ADDITION_MODE, "GIMP_ADDITION_MODE", "addition-mode" },
{ GIMP_SUBTRACT_MODE, "GIMP_SUBTRACT_MODE", "subtract-mode" },
{ GIMP_DARKEN_ONLY_MODE, "GIMP_DARKEN_ONLY_MODE", "darken-only-mode" },
{ GIMP_LIGHTEN_ONLY_MODE, "GIMP_LIGHTEN_ONLY_MODE", "lighten-only-mode" },
{ GIMP_HUE_MODE, "GIMP_HUE_MODE", "hue-mode" },
{ GIMP_SATURATION_MODE, "GIMP_SATURATION_MODE", "saturation-mode" },
{ GIMP_COLOR_MODE, "GIMP_COLOR_MODE", "color-mode" },
{ GIMP_VALUE_MODE, "GIMP_VALUE_MODE", "value-mode" },
{ GIMP_DIVIDE_MODE, "GIMP_DIVIDE_MODE", "divide-mode" },
{ GIMP_DODGE_MODE, "GIMP_DODGE_MODE", "dodge-mode" },
{ GIMP_BURN_MODE, "GIMP_BURN_MODE", "burn-mode" },
{ GIMP_HARDLIGHT_MODE, "GIMP_HARDLIGHT_MODE", "hardlight-mode" },
{ GIMP_SOFTLIGHT_MODE, "GIMP_SOFTLIGHT_MODE", "softlight-mode" },
{ GIMP_GRAIN_EXTRACT_MODE, "GIMP_GRAIN_EXTRACT_MODE", "grain-extract-mode" },
{ GIMP_GRAIN_MERGE_MODE, "GIMP_GRAIN_MERGE_MODE", "grain-merge-mode" },
{ GIMP_COLOR_ERASE_MODE, "GIMP_COLOR_ERASE_MODE", "color-erase-mode" },
{ 0, NULL, NULL }
};
static GType type = 0;
if (! type)
type = g_enum_register_static ("GimpLayerModeEffects", values);
return type;
}
static const GEnumValue gimp_transfer_mode_enum_values[] =
{
{ GIMP_SHADOWS, N_("Shadows"), "shadows" },
{ GIMP_MIDTONES, N_("Midtones"), "midtones" },
{ GIMP_HIGHLIGHTS, N_("Highlights"), "highlights" },
{ 0, NULL, NULL }
};
GType
gimp_transfer_mode_get_type (void)
{
static GType enum_type = 0;
static const GEnumValue values[] =
{
{ GIMP_SHADOWS, N_("Shadows"), "shadows" },
{ GIMP_MIDTONES, N_("Midtones"), "midtones" },
{ GIMP_HIGHLIGHTS, N_("Highlights"), "highlights" },
{ 0, NULL, NULL }
};
static GType type = 0;
if (!enum_type)
enum_type = g_enum_register_static ("GimpTransferMode", gimp_transfer_mode_enum_values);
if (! type)
type = g_enum_register_static ("GimpTransferMode", values);
return enum_type;
return type;
}
......
......@@ -249,9 +249,9 @@ $(srcdir)/core-enums.c: $(srcdir)/core-enums.h $(GIMP_MKENUMS)
$(GIMP_MKENUMS) \
--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"core-enums.h\"\n#include \"gimp-intl.h\"" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{" \
--vprod " { @VALUENAME@, @valuedesc@, \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n};\n\nGType\n@enum_name@_get_type (void)\n{\n static GType enum_type = 0;\n\n if (!enum_type)\n enum_type = g_enum_register_static (\"@EnumName@\", @enum_name@_enum_values);\n\n return enum_type;\n}\n" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
--vprod " { @VALUENAME@, @valuedesc@, \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (! type)\n type = g_@type@_register_static (\"@EnumName@\", values);\n\n return type;\n}\n" \
$(srcdir)/core-enums.h > xgen-cec \
&& cp xgen-cec $(@F) \
&& rm -f xgen-cec
......@@ -7,685 +7,683 @@
#include "gimp-intl.h"
/* enumerations from "./core-enums.h" */
static const GEnumValue gimp_add_mask_type_enum_values[] =
{
{ GIMP_ADD_WHITE_MASK, N_("_White (full opacity)"), "white-mask" },
{ GIMP_ADD_BLACK_MASK, N_("_Black (full transparency)"), "black-mask" },
{ GIMP_ADD_ALPHA_MASK, N_("Layer's _alpha channel"), "alpha-mask" },
{ GIMP_ADD_ALPHA_TRANSFER_MASK, N_("_Transfer layer's alpha channel"), "alpha-transfer-mask" },
{ GIMP_ADD_SELECTION_MASK, N_("_Selection"), "selection-mask" },
{ GIMP_ADD_COPY_MASK, N_("_Grayscale copy of layer"), "copy-mask" },
{ 0, NULL, NULL }
};
GType
gimp_add_mask_type_get_type (void)
{
static GType enum_type = 0;
if (!enum_type)
enum_type = g_enum_register_static ("GimpAddMaskType", gimp_add_mask_type_enum_values);
static const GEnumValue values[] =
{
{ GIMP_ADD_WHITE_MASK, N_("_White (full opacity)"), "white-mask" },
{ GIMP_ADD_BLACK_MASK, N_("_Black (full transparency)"), "black-mask" },
{ GIMP_ADD_ALPHA_MASK, N_("Layer's _alpha channel"), "alpha-mask" },
{ GIMP_ADD_ALPHA_TRANSFER_MASK, N_("_Transfer layer's alpha channel"), "alpha-transfer-mask" },
{ GIMP_ADD_SELECTION_MASK, N_("_Selection"), "selection-mask" },
{ GIMP_ADD_COPY_MASK, N_("_Grayscale copy of layer"), "copy-mask" },
{ 0, NULL, NULL }
};
return enum_type;
}
static GType type = 0;
if (! type)
type = g_enum_register_static ("GimpAddMaskType", values);
static const GEnumValue gimp_blend_mode_enum_values[] =
{
{ GIMP_FG_BG_RGB_MODE, N_("FG to BG (RGB)"), "fg-bg-rgb-mode" },
{ GIMP_FG_BG_HSV_MODE, N_("FG to BG (HSV)"), "fg-bg-hsv-mode" },
{ GIMP_FG_TRANSPARENT_MODE, N_("FG to transparent"), "fg-transparent-mode" },
{ GIMP_CUSTOM_MODE, N_("Custom gradient"), "custom-mode" },
{ 0, NULL, NULL }
};
return type;
}
GType
gimp_blend_mode_get_type (void)
{
static GType enum_type = 0;
static const GEnumValue values[] =
{
{ GIMP_FG_BG_RGB_MODE, N_("FG to BG (RGB)"), "fg-bg-rgb-mode" },
{ GIMP_FG_BG_HSV_MODE, N_("FG to BG (HSV)"), "fg-bg-hsv-mode" },
{ GIMP_FG_TRANSPARENT_MODE, N_("FG to transparent"), "fg-transparent-mode" },
{ GIMP_CUSTOM_MODE, N_("Custom gradient"), "custom-mode" },
{ 0, NULL, NULL }
};
if (!enum_type)
enum_type = g_enum_register_static ("GimpBlendMode", gimp_blend_mode_enum_values);
static GType type = 0;
return enum_type;
}
if (! type)
type = g_enum_register_static ("GimpBlendMode", values);
static const GEnumValue gimp_bucket_fill_mode_enum_values[] =
{
{ GIMP_FG_BUCKET_FILL, N_("FG color fill"), "fg-bucket-fill" },
{ GIMP_BG_BUCKET_FILL, N_("BG color fill"), "bg-bucket-fill" },
{ GIMP_PATTERN_BUCKET_FILL, N_("Pattern fill"), "pattern-bucket-fill" },
{ 0, NULL, NULL }
};
return type;
}
GType
gimp_bucket_fill_mode_get_type (void)
{
static GType enum_type = 0;
static const GEnumValue values[] =
{
{ GIMP_FG_BUCKET_FILL, N_("FG color fill"), "fg-bucket-fill" },
{ GIMP_BG_BUCKET_FILL, N_("BG color fill"), "bg-bucket-fill" },
{ GIMP_PATTERN_BUCKET_FILL, N_("Pattern fill"), "pattern-bucket-fill" },
{ 0, NULL, NULL }
};
if (!enum_type)
enum_type = g_enum_register_static ("GimpBucketFillMode", gimp_bucket_fill_mode_enum_values);
static GType type = 0;
return enum_type;
}
if (! type)
type = g_enum_register_static ("GimpBucketFillMode", values);
static const GEnumValue gimp_channel_ops_enum_values[] =
{
{ GIMP_CHANNEL_OP_ADD, N_("Add to the current selection"), "add" },
{ GIMP_CHANNEL_OP_SUBTRACT, N_("Subtract from the current selection"), "subtract" },
{ GIMP_CHANNEL_OP_REPLACE, N_("Replace the current selection"), "replace" },
{ GIMP_CHANNEL_OP_INTERSECT, N_("Intersect with the current selection"), "intersect" },
{ 0, NULL, NULL }
};
return type;
}
GType
gimp_channel_ops_get_type (void)
{
static GType enum_type = 0;
static const GEnumValue values[] =
{
{ GIMP_CHANNEL_OP_ADD, N_("Add to the current selection"), "add" },
{ GIMP_CHANNEL_OP_SUBTRACT, N_("Subtract from the current selection"), "subtract" },
{ GIMP_CHANNEL_OP_REPLACE, N_("Replace the current selection"), "replace" },
{ GIMP_CHANNEL_OP_INTERSECT, N_("Intersect with the current selection"), "intersect" },
{ 0, NULL, NULL }
};
if (!enum_type)
enum_type = g_enum_register_static ("GimpChannelOps", gimp_channel_ops_enum_values);
return enum_type;
}
static GType type = 0;
if (! type)
type = g_enum_register_static ("GimpChannelOps", values);
static const GEnumValue gimp_channel_type_enum_values[] =
{
{ GIMP_RED_CHANNEL, N_("Red"), "red-channel" },
{ GIMP_GREEN_CHANNEL, N_("Green"), "green-channel" },
{ GIMP_BLUE_CHANNEL, N_("Blue"), "blue-channel" },
{ GIMP_GRAY_CHANNEL, N_("Gray"), "gray-channel" },
{ GIMP_INDEXED_CHANNEL, N_("Indexed"), "indexed-channel" },
{ GIMP_ALPHA_CHANNEL, N_("Alpha"), "alpha-channel" },
{ 0, NULL, NULL }
};
return type;
}
GType
gimp_channel_type_get_type (void)
{
static GType enum_type = 0;
static const GEnumValue values[] =
{
{ GIMP_RED_CHANNEL, N_("Red"), "red-channel" },
{ GIMP_GREEN_CHANNEL, N_("Green"), "green-channel" },
{ GIMP_BLUE_CHANNEL, N_("Blue"), "blue-channel" },
{ GIMP_GRAY_CHANNEL, N_("Gray"), "gray-channel" },
{ GIMP_INDEXED_CHANNEL, N_("Indexed"), "indexed-channel" },
{ GIMP_ALPHA_CHANNEL, N_("Alpha"), "alpha-channel" },
{ 0, NULL, NULL }
};
if (!enum_type)
enum_type = g_enum_register_static ("GimpChannelType", gimp_channel_type_enum_values);
return enum_type;
}
static GType type = 0;
if (! type)
type = g_enum_register_static ("GimpChannelType", values);
static const GEnumValue gimp_container_policy_enum_values[] =
{
{ GIMP_CONTAINER_POLICY_STRONG, "GIMP_CONTAINER_POLICY_STRONG", "strong" },
{ GIMP_CONTAINER_POLICY_WEAK, "GIMP_CONTAINER_POLICY_WEAK", "weak" },
{ 0, NULL, NULL }
};
return type;
}
GType
gimp_container_policy_get_type (void)
{
static GType enum_type = 0;
static const GEnumValue values[] =
{
{ GIMP_CONTAINER_POLICY_STRONG, "GIMP_CONTAINER_POLICY_STRONG", "strong" },
{ GIMP_CONTAINER_POLICY_WEAK, "GIMP_CONTAINER_POLICY_WEAK", "weak" },
{ 0, NULL, NULL }
};
if (!enum_type)
enum_type = g_enum_register_static ("GimpContainerPolicy", gimp_container_policy_enum_values);
return enum_type;
}
static GType type = 0;
if (! type)
type = g_enum_register_static ("GimpContainerPolicy", values);
static const GEnumValue gimp_convert_dither_type_enum_values[] =
{
{ GIMP_NO_DITHER, N_("No color dithering"), "no-dither" },
{ GIMP_FS_DITHER, N_("Floyd-Steinberg color dithering (normal)"), "fs-dither" },
{ GIMP_FSLOWBLEED_DITHER, N_("Floyd-Steinberg color dithering (reduced color bleeding)"), "fslowbleed-dither" },
{ GIMP_FIXED_DITHER, N_("Positioned color dithering"), "fixed-dither" },
{ 0, NULL, NULL }
};
return type;
}
GType
gimp_convert_dither_type_get_type (void)
{
static GType enum_type = 0;
static const GEnumValue values[] =
{
{ GIMP_NO_DITHER, N_("No color dithering"), "no-dither" },
{ GIMP_FS_DITHER, N_("Floyd-Steinberg color dithering (normal)"), "fs-dither" },
{ GIMP_FSLOWBLEED_DITHER, N_("Floyd-Steinberg color dithering (reduced color bleeding)"), "fslowbleed-dither" },
{ GIMP_FIXED_DITHER, N_("Positioned color dithering"), "fixed-dither" },
{ 0, NULL, NULL }
};
if (!enum_type)
enum_type = g_enum_register_static ("GimpConvertDitherType", gimp_convert_dither_type_enum_values);
return enum_type;
}
static GType type = 0;
if (! type)
type = g_enum_register_static ("GimpConvertDitherType", values);
static const GEnumValue gimp_gravity_type_enum_values[] =
{
{ GIMP_GRAVITY_NONE, "GIMP_GRAVITY_NONE", "none" },
{ GIMP_GRAVITY_NORTH_WEST, "GIMP_GRAVITY_NORTH_WEST", "north-west" },
{ GIMP_GRAVITY_NORTH, "GIMP_GRAVITY_NORTH", "north" },
{ GIMP_GRAVITY_NORTH_EAST, "GIMP_GRAVITY_NORTH_EAST", "north-east" },
{ GIMP_GRAVITY_WEST, "GIMP_GRAVITY_WEST", "west" },
{ GIMP_GRAVITY_CENTER, "GIMP_GRAVITY_CENTER", "center" },
{ GIMP_GRAVITY_EAST, "GIMP_GRAVITY_EAST", "east" },
{ GIMP_GRAVITY_SOUTH_WEST, "GIMP_GRAVITY_SOUTH_WEST", "south-west" },
{ GIMP_GRAVITY_SOUTH, "GIMP_GRAVITY_SOUTH", "south" },
{ GIMP_GRAVITY_SOUTH_EAST, "GIMP_GRAVITY_SOUTH_EAST", "south-east" },
{ 0, NULL, NULL }
};
return type;
}
GType
gimp_gravity_type_get_type (void)
{
static GType enum_type = 0;
if (!enum_type)
enum_type = g_enum_register_static ("GimpGravityType", gimp_gravity_type_enum_values);
return enum_type;
static const GEnumValue values[] =