diff --git a/libgimpwidgets/gimpwidgetsenums.c b/libgimpwidgets/gimpwidgetsenums.c index 8bd6dcdd3e..82b16a1d67 100644 --- a/libgimpwidgets/gimpwidgetsenums.c +++ b/libgimpwidgets/gimpwidgetsenums.c @@ -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 */ diff --git a/libgimpwidgets/gimpwidgetsenums.h b/libgimpwidgets/gimpwidgetsenums.h index 51384f1bc5..3544afc6a3 100644 --- a/libgimpwidgets/gimpwidgetsenums.h +++ b/libgimpwidgets/gimpwidgetsenums.h @@ -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__ */