libgimpwidgets: keep gimpwidgetsenums.h in alphabetical order

This commit is contained in:
Michael Natterer 2019-06-01 16:41:59 +02:00
parent a1aa179436
commit 2f925e7277
2 changed files with 55 additions and 53 deletions

View File

@ -184,6 +184,38 @@ gimp_color_selector_model_get_type (void)
return type;
}
GType
gimp_int_combo_box_layout_get_type (void)
{
static const GEnumValue values[] =
{
{ GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY, "GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY", "icon-only" },
{ GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED, "GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED", "abbreviated" },
{ GIMP_INT_COMBO_BOX_LAYOUT_FULL, "GIMP_INT_COMBO_BOX_LAYOUT_FULL", "full" },
{ 0, NULL, NULL }
};
static const GimpEnumDesc descs[] =
{
{ GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY, "GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY", NULL },
{ GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED, "GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED", NULL },
{ GIMP_INT_COMBO_BOX_LAYOUT_FULL, "GIMP_INT_COMBO_BOX_LAYOUT_FULL", NULL },
{ 0, NULL, NULL }
};
static GType type = 0;
if (G_UNLIKELY (! type))
{
type = g_enum_register_static ("GimpIntComboBoxLayout", values);
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
gimp_type_set_translation_context (type, "int-combo-box-layout");
gimp_enum_set_value_descriptions (type, descs);
}
return type;
}
GType
gimp_page_selector_target_get_type (void)
{
@ -276,38 +308,6 @@ gimp_zoom_type_get_type (void)
return type;
}
GType
gimp_int_combo_box_layout_get_type (void)
{
static const GEnumValue values[] =
{
{ GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY, "GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY", "icon-only" },
{ GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED, "GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED", "abbreviated" },
{ GIMP_INT_COMBO_BOX_LAYOUT_FULL, "GIMP_INT_COMBO_BOX_LAYOUT_FULL", "full" },
{ 0, NULL, NULL }
};
static const GimpEnumDesc descs[] =
{
{ GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY, "GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY", NULL },
{ GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED, "GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED", NULL },
{ GIMP_INT_COMBO_BOX_LAYOUT_FULL, "GIMP_INT_COMBO_BOX_LAYOUT_FULL", NULL },
{ 0, NULL, NULL }
};
static GType type = 0;
if (G_UNLIKELY (! type))
{
type = g_enum_register_static ("GimpIntComboBoxLayout", values);
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
gimp_type_set_translation_context (type, "int-combo-box-layout");
gimp_enum_set_value_descriptions (type, descs);
}
return type;
}
/* Generated data ends here */

View File

@ -145,6 +145,29 @@ typedef enum
} GimpColorSelectorModel;
/**
* GimpIntComboBoxLayout:
* @GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY: show icons only
* @GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED: show icons and abbreviated labels,
* when available
* @GIMP_INT_COMBO_BOX_LAYOUT_FULL: show icons and full labels
*
* Possible layouts for #GimpIntComboBox.
*
* Since: 2.10
**/
#define GIMP_TYPE_INT_COMBO_BOX_LAYOUT (gimp_int_combo_box_layout_get_type ())
GType gimp_int_combo_box_layout_get_type (void) G_GNUC_CONST;
typedef enum
{
GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY,
GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED,
GIMP_INT_COMBO_BOX_LAYOUT_FULL
} GimpIntComboBoxLayout;
/**
* GimpPageSelectorTarget:
* @GIMP_PAGE_SELECTOR_TARGET_LAYERS: import as layers of one image
@ -213,27 +236,6 @@ typedef enum
} GimpZoomType;
/**
* GimpIntComboBoxLayout:
* @GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY: show icons only
* @GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED: show icons and abbreviated labels,
* when available
* @GIMP_INT_COMBO_BOX_LAYOUT_FULL: show icons and full labels
*
* Possible layouts for #GimpIntComboBox.
**/
#define GIMP_TYPE_INT_COMBO_BOX_LAYOUT (gimp_int_combo_box_layout_get_type ())
GType gimp_int_combo_box_layout_get_type (void) G_GNUC_CONST;
typedef enum
{
GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY,
GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED,
GIMP_INT_COMBO_BOX_LAYOUT_FULL
} GimpIntComboBoxLayout;
G_END_DECLS
#endif /* __GIMP_WIDGETS_ENUMS_H__ */