app: s/sprintf/g_snprintf/ in xcf_save_image()
[gimp.git] / libgimpconfig / gimpconfigenums.c
blob294d7c0c950f9ceb881ef5418016fbee1cee2fce
2 /* Generated data (by gimp-mkenums) */
4 #include "config.h"
5 #include <gio/gio.h>
6 #include "libgimpbase/gimpbase.h"
7 #include "gimpconfigenums.h"
8 #include "libgimp/libgimp-intl.h"
10 /* enumerations from "gimpconfigenums.h" */
11 GType
12 gimp_color_management_mode_get_type (void)
14 static const GEnumValue values[] =
16 { GIMP_COLOR_MANAGEMENT_OFF, "GIMP_COLOR_MANAGEMENT_OFF", "off" },
17 { GIMP_COLOR_MANAGEMENT_DISPLAY, "GIMP_COLOR_MANAGEMENT_DISPLAY", "display" },
18 { GIMP_COLOR_MANAGEMENT_SOFTPROOF, "GIMP_COLOR_MANAGEMENT_SOFTPROOF", "softproof" },
19 { 0, NULL, NULL }
22 static const GimpEnumDesc descs[] =
24 { GIMP_COLOR_MANAGEMENT_OFF, NC_("color-management-mode", "No color management"), NULL },
25 { GIMP_COLOR_MANAGEMENT_DISPLAY, NC_("color-management-mode", "Color-managed display"), NULL },
26 { GIMP_COLOR_MANAGEMENT_SOFTPROOF, NC_("color-management-mode", "Soft-proofing"), NULL },
27 { 0, NULL, NULL }
30 static GType type = 0;
32 if (G_UNLIKELY (! type))
34 type = g_enum_register_static ("GimpColorManagementMode", values);
35 gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
36 gimp_type_set_translation_context (type, "color-management-mode");
37 gimp_enum_set_value_descriptions (type, descs);
40 return type;
43 GType
44 gimp_color_rendering_intent_get_type (void)
46 static const GEnumValue values[] =
48 { GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL, "GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL", "perceptual" },
49 { GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC, "GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC", "relative-colorimetric" },
50 { GIMP_COLOR_RENDERING_INTENT_SATURATION, "GIMP_COLOR_RENDERING_INTENT_SATURATION", "saturation" },
51 { GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC, "GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC", "absolute-colorimetric" },
52 { 0, NULL, NULL }
55 static const GimpEnumDesc descs[] =
57 { GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL, NC_("color-rendering-intent", "Perceptual"), NULL },
58 { GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC, NC_("color-rendering-intent", "Relative colorimetric"), NULL },
59 { GIMP_COLOR_RENDERING_INTENT_SATURATION, NC_("color-rendering-intent", "Saturation"), NULL },
60 { GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC, NC_("color-rendering-intent", "Absolute colorimetric"), NULL },
61 { 0, NULL, NULL }
64 static GType type = 0;
66 if (G_UNLIKELY (! type))
68 type = g_enum_register_static ("GimpColorRenderingIntent", values);
69 gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
70 gimp_type_set_translation_context (type, "color-rendering-intent");
71 gimp_enum_set_value_descriptions (type, descs);
74 return type;
78 /* Generated data ends here */