Commit fe520925 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

app/base/Makefile.am app/core/Makefile.am app/display/Makefile.am

2008-11-03  Sven Neumann  <sven@gimp.org>

	
	* app/base/Makefile.am
	* app/core/Makefile.am
	* app/display/Makefile.am
	* app/paint/Makefile.am
	* app/plug-in/Makefile.am
	* app/text/Makefile.am
	* app/tools/Makefile.am
	* app/widgets/Makefile.am
	* libgimp/Makefile.am
	* libgimpbase/Makefile.am: 
	* libgimpconfig/Makefile.am
	* libgimpthumb/Makefile.am
	* libgimpwidgets/Makefile.am: micro-optimization in the 
generated
	enum registration code.

	* app/base/base-enums.c
	* app/core/core-enums.c
	* app/display/display-enums.c
	* app/paint/paint-enums.c
	* app/plug-in/plug-in-enums.c
	* app/text/text-enums.c
	* app/tools/tools-enums.c
	* app/widgets/widgets-enums.c
	* libgimpbase/gimpbaseenums.c
	* libgimpconfig/gimpcolorconfig-enums.c
	* libgimpwidgets/gimpwidgetsenums.c: regenerated.


svn path=/trunk/; revision=27538
parent b994ab72
2008-11-03 Sven Neumann <sven@gimp.org>
* app/base/Makefile.am
* app/core/Makefile.am
* app/display/Makefile.am
* app/paint/Makefile.am
* app/plug-in/Makefile.am
* app/text/Makefile.am
* app/tools/Makefile.am
* app/widgets/Makefile.am
* libgimp/Makefile.am
* libgimpbase/Makefile.am:
* libgimpconfig/Makefile.am
* libgimpthumb/Makefile.am
* libgimpwidgets/Makefile.am: micro-optimization in the generated
enum registration code.
* app/base/base-enums.c
* app/core/core-enums.c
* app/display/display-enums.c
* app/paint/paint-enums.c
* app/plug-in/plug-in-enums.c
* app/text/text-enums.c
* app/tools/tools-enums.c
* app/widgets/widgets-enums.c
* libgimpbase/gimpbaseenums.c
* libgimpconfig/gimpcolorconfig-enums.c
* libgimpwidgets/gimpwidgetsenums.c: regenerated.
2008-11-03 Michael Natterer <mitch@gimp.org> 2008-11-03 Michael Natterer <mitch@gimp.org>
* app/core/gimp-edit.c * app/core/gimp-edit.c
......
...@@ -92,7 +92,7 @@ base-enums.c: $(srcdir)/base-enums.h $(GIMP_MKENUMS) ...@@ -92,7 +92,7 @@ base-enums.c: $(srcdir)/base-enums.h $(GIMP_MKENUMS)
--vtail " { 0, NULL, NULL }\n };\n" \ --vtail " { 0, NULL, NULL }\n };\n" \
--dhead " static const Gimp@Type@Desc descs[] =\n {" \ --dhead " static const Gimp@Type@Desc descs[] =\n {" \
--dprod " { @VALUENAME@, @valuedesc@, @valuehelp@ }," \ --dprod " { @VALUENAME@, @valuedesc@, @valuehelp@ }," \
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (! type)\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \ --dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
$(srcdir)/base-enums.h > xgen-bec \ $(srcdir)/base-enums.h > xgen-bec \
&& cp xgen-bec $(@F) \ && cp xgen-bec $(@F) \
&& rm -f xgen-bec && rm -f xgen-bec
...@@ -27,7 +27,7 @@ gimp_curve_type_get_type (void) ...@@ -27,7 +27,7 @@ gimp_curve_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpCurveType", values); type = g_enum_register_static ("GimpCurveType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -63,7 +63,7 @@ gimp_histogram_channel_get_type (void) ...@@ -63,7 +63,7 @@ gimp_histogram_channel_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpHistogramChannel", values); type = g_enum_register_static ("GimpHistogramChannel", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -139,7 +139,7 @@ gimp_layer_mode_effects_get_type (void) ...@@ -139,7 +139,7 @@ gimp_layer_mode_effects_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpLayerModeEffects", values); type = g_enum_register_static ("GimpLayerModeEffects", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -177,7 +177,7 @@ gimp_hue_range_get_type (void) ...@@ -177,7 +177,7 @@ gimp_hue_range_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpHueRange", values); type = g_enum_register_static ("GimpHueRange", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
......
...@@ -373,7 +373,7 @@ core-enums.c: $(srcdir)/core-enums.h $(GIMP_MKENUMS) ...@@ -373,7 +373,7 @@ core-enums.c: $(srcdir)/core-enums.h $(GIMP_MKENUMS)
--vtail " { 0, NULL, NULL }\n };\n" \ --vtail " { 0, NULL, NULL }\n };\n" \
--dhead " static const Gimp@Type@Desc descs[] =\n {" \ --dhead " static const Gimp@Type@Desc descs[] =\n {" \
--dprod " { @VALUENAME@, @valuedesc@, @valuehelp@ }," \ --dprod " { @VALUENAME@, @valuedesc@, @valuehelp@ }," \
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (! type)\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \ --dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
$(srcdir)/core-enums.h > xgen-cec \ $(srcdir)/core-enums.h > xgen-cec \
&& cp xgen-cec $(@F) \ && cp xgen-cec $(@F) \
&& rm -f xgen-cec && rm -f xgen-cec
...@@ -27,7 +27,7 @@ gimp_container_policy_get_type (void) ...@@ -27,7 +27,7 @@ gimp_container_policy_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpContainerPolicy", values); type = g_enum_register_static ("GimpContainerPolicy", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -59,7 +59,7 @@ gimp_convert_dither_type_get_type (void) ...@@ -59,7 +59,7 @@ gimp_convert_dither_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpConvertDitherType", values); type = g_enum_register_static ("GimpConvertDitherType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -91,7 +91,7 @@ gimp_convert_palette_type_get_type (void) ...@@ -91,7 +91,7 @@ gimp_convert_palette_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpConvertPaletteType", values); type = g_enum_register_static ("GimpConvertPaletteType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -135,7 +135,7 @@ gimp_gravity_type_get_type (void) ...@@ -135,7 +135,7 @@ gimp_gravity_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpGravityType", values); type = g_enum_register_static ("GimpGravityType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -183,7 +183,7 @@ gimp_alignment_type_get_type (void) ...@@ -183,7 +183,7 @@ gimp_alignment_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpAlignmentType", values); type = g_enum_register_static ("GimpAlignmentType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -219,7 +219,7 @@ gimp_align_reference_type_get_type (void) ...@@ -219,7 +219,7 @@ gimp_align_reference_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpAlignReferenceType", values); type = g_enum_register_static ("GimpAlignReferenceType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -255,7 +255,7 @@ gimp_fill_type_get_type (void) ...@@ -255,7 +255,7 @@ gimp_fill_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpFillType", values); type = g_enum_register_static ("GimpFillType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -283,7 +283,7 @@ gimp_fill_style_get_type (void) ...@@ -283,7 +283,7 @@ gimp_fill_style_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpFillStyle", values); type = g_enum_register_static ("GimpFillStyle", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -311,7 +311,7 @@ gimp_stroke_method_get_type (void) ...@@ -311,7 +311,7 @@ gimp_stroke_method_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpStrokeMethod", values); type = g_enum_register_static ("GimpStrokeMethod", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -341,7 +341,7 @@ gimp_join_style_get_type (void) ...@@ -341,7 +341,7 @@ gimp_join_style_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpJoinStyle", values); type = g_enum_register_static ("GimpJoinStyle", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -371,7 +371,7 @@ gimp_cap_style_get_type (void) ...@@ -371,7 +371,7 @@ gimp_cap_style_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpCapStyle", values); type = g_enum_register_static ("GimpCapStyle", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -417,7 +417,7 @@ gimp_dash_preset_get_type (void) ...@@ -417,7 +417,7 @@ gimp_dash_preset_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpDashPreset", values); type = g_enum_register_static ("GimpDashPreset", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -447,7 +447,7 @@ gimp_brush_generated_shape_get_type (void) ...@@ -447,7 +447,7 @@ gimp_brush_generated_shape_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpBrushGeneratedShape", values); type = g_enum_register_static ("GimpBrushGeneratedShape", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -477,7 +477,7 @@ gimp_orientation_type_get_type (void) ...@@ -477,7 +477,7 @@ gimp_orientation_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpOrientationType", values); type = g_enum_register_static ("GimpOrientationType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -511,7 +511,7 @@ gimp_item_set_get_type (void) ...@@ -511,7 +511,7 @@ gimp_item_set_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpItemSet", values); type = g_enum_register_static ("GimpItemSet", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -541,7 +541,7 @@ gimp_rotation_type_get_type (void) ...@@ -541,7 +541,7 @@ gimp_rotation_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpRotationType", values); type = g_enum_register_static ("GimpRotationType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -583,7 +583,7 @@ gimp_view_size_get_type (void) ...@@ -583,7 +583,7 @@ gimp_view_size_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpViewSize", values); type = g_enum_register_static ("GimpViewSize", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -611,7 +611,7 @@ gimp_view_type_get_type (void) ...@@ -611,7 +611,7 @@ gimp_view_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpViewType", values); type = g_enum_register_static ("GimpViewType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -647,7 +647,7 @@ gimp_selection_control_get_type (void) ...@@ -647,7 +647,7 @@ gimp_selection_control_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpSelectionControl", values); type = g_enum_register_static ("GimpSelectionControl", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -677,7 +677,7 @@ gimp_thumbnail_size_get_type (void) ...@@ -677,7 +677,7 @@ gimp_thumbnail_size_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpThumbnailSize", values); type = g_enum_register_static ("GimpThumbnailSize", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -705,7 +705,7 @@ gimp_undo_mode_get_type (void) ...@@ -705,7 +705,7 @@ gimp_undo_mode_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpUndoMode", values); type = g_enum_register_static ("GimpUndoMode", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -745,7 +745,7 @@ gimp_undo_event_get_type (void) ...@@ -745,7 +745,7 @@ gimp_undo_event_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpUndoEvent", values); type = g_enum_register_static ("GimpUndoEvent", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -935,7 +935,7 @@ gimp_undo_type_get_type (void) ...@@ -935,7 +935,7 @@ gimp_undo_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpUndoType", values); type = g_enum_register_static ("GimpUndoType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -981,7 +981,7 @@ gimp_dirty_mask_get_type (void) ...@@ -981,7 +981,7 @@ gimp_dirty_mask_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_flags_register_static ("GimpDirtyMask", values); type = g_flags_register_static ("GimpDirtyMask", values);
gimp_flags_set_value_descriptions (type, descs); gimp_flags_set_value_descriptions (type, descs);
...@@ -1009,7 +1009,7 @@ gimp_offset_type_get_type (void) ...@@ -1009,7 +1009,7 @@ gimp_offset_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpOffsetType", values); type = g_enum_register_static ("GimpOffsetType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -1043,7 +1043,7 @@ gimp_gradient_color_get_type (void) ...@@ -1043,7 +1043,7 @@ gimp_gradient_color_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpGradientColor", values); type = g_enum_register_static ("GimpGradientColor", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -1077,7 +1077,7 @@ gimp_gradient_segment_type_get_type (void) ...@@ -1077,7 +1077,7 @@ gimp_gradient_segment_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpGradientSegmentType", values); type = g_enum_register_static ("GimpGradientSegmentType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -1107,7 +1107,7 @@ gimp_gradient_segment_color_get_type (void) ...@@ -1107,7 +1107,7 @@ gimp_gradient_segment_color_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpGradientSegmentColor", values); type = g_enum_register_static ("GimpGradientSegmentColor", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -1135,7 +1135,7 @@ gimp_mask_apply_mode_get_type (void) ...@@ -1135,7 +1135,7 @@ gimp_mask_apply_mode_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpMaskApplyMode", values); type = g_enum_register_static ("GimpMaskApplyMode", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -1167,7 +1167,7 @@ gimp_merge_type_get_type (void) ...@@ -1167,7 +1167,7 @@ gimp_merge_type_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpMergeType", values); type = g_enum_register_static ("GimpMergeType", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -1205,7 +1205,7 @@ gimp_select_criterion_get_type (void) ...@@ -1205,7 +1205,7 @@ gimp_select_criterion_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpSelectCriterion", values); type = g_enum_register_static ("GimpSelectCriterion", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -1235,7 +1235,7 @@ gimp_message_severity_get_type (void) ...@@ -1235,7 +1235,7 @@ gimp_message_severity_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpMessageSeverity", values); type = g_enum_register_static ("GimpMessageSeverity", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -1265,7 +1265,7 @@ gimp_color_profile_policy_get_type (void) ...@@ -1265,7 +1265,7 @@ gimp_color_profile_policy_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpColorProfilePolicy", values); type = g_enum_register_static ("GimpColorProfilePolicy", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
......
...@@ -104,7 +104,7 @@ display-enums.c: $(srcdir)/display-enums.h $(GIMP_MKENUMS) ...@@ -104,7 +104,7 @@ display-enums.c: $(srcdir)/display-enums.h $(GIMP_MKENUMS)
--vtail " { 0, NULL, NULL }\n };\n" \ --vtail " { 0, NULL, NULL }\n };\n" \
--dhead " static const Gimp@Type@Desc descs[] =\n {" \ --dhead " static const Gimp@Type@Desc descs[] =\n {" \
--dprod " { @VALUENAME@, @valuedesc@, @valuehelp@ }," \ --dprod " { @VALUENAME@, @valuedesc@, @valuehelp@ }," \
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (! type)\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \ --dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
$(srcdir)/display-enums.h > xgen-dec \ $(srcdir)/display-enums.h > xgen-dec \
&& cp xgen-dec $(@F) \ && cp xgen-dec $(@F) \
&& rm -f xgen-dec && rm -f xgen-dec
...@@ -29,7 +29,7 @@ gimp_cursor_mode_get_type (void) ...@@ -29,7 +29,7 @@ gimp_cursor_mode_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpCursorMode", values); type = g_enum_register_static ("GimpCursorMode", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -59,7 +59,7 @@ gimp_cursor_precision_get_type (void) ...@@ -59,7 +59,7 @@ gimp_cursor_precision_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpCursorPrecision", values); type = g_enum_register_static ("GimpCursorPrecision", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -91,7 +91,7 @@ gimp_canvas_padding_mode_get_type (void) ...@@ -91,7 +91,7 @@ gimp_canvas_padding_mode_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpCanvasPaddingMode", values); type = g_enum_register_static ("GimpCanvasPaddingMode", values);
gimp_enum_set_value_descriptions (type, descs); gimp_enum_set_value_descriptions (type, descs);
...@@ -121,7 +121,7 @@ gimp_space_bar_action_get_type (void) ...@@ -121,7 +121,7 @@ gimp_space_bar_action_get_type (void)
static GType type = 0; static GType type = 0;
if (! type) if (G_UNLIKELY (! type))
{ {
type = g_enum_register_static ("GimpSpaceBarAction", values); type = g_enum_register_static ("GimpSpaceBarAction", values);
gimp_enum_set_value_descriptions (type, descs);