1
2 /* Generated data (by gimp-mkenums) */
3
4 #include "config.h"
5 #include <gio/gio.h>
6 #include "libgimpbase/gimpbase.h"
7 #include "paint-enums.h"
8 #include "gimp-intl.h"
9
10 /* enumerations from "paint-enums.h" */
11 GType
gimp_brush_application_mode_get_type(void)12 gimp_brush_application_mode_get_type (void)
13 {
14 static const GEnumValue values[] =
15 {
16 { GIMP_BRUSH_HARD, "GIMP_BRUSH_HARD", "hard" },
17 { GIMP_BRUSH_SOFT, "GIMP_BRUSH_SOFT", "soft" },
18 { 0, NULL, NULL }
19 };
20
21 static const GimpEnumDesc descs[] =
22 {
23 { GIMP_BRUSH_HARD, "GIMP_BRUSH_HARD", NULL },
24 { GIMP_BRUSH_SOFT, "GIMP_BRUSH_SOFT", NULL },
25 { 0, NULL, NULL }
26 };
27
28 static GType type = 0;
29
30 if (G_UNLIKELY (! type))
31 {
32 type = g_enum_register_static ("GimpBrushApplicationMode", values);
33 gimp_type_set_translation_context (type, "brush-application-mode");
34 gimp_enum_set_value_descriptions (type, descs);
35 }
36
37 return type;
38 }
39
40 GType
gimp_perspective_clone_mode_get_type(void)41 gimp_perspective_clone_mode_get_type (void)
42 {
43 static const GEnumValue values[] =
44 {
45 { GIMP_PERSPECTIVE_CLONE_MODE_ADJUST, "GIMP_PERSPECTIVE_CLONE_MODE_ADJUST", "adjust" },
46 { GIMP_PERSPECTIVE_CLONE_MODE_PAINT, "GIMP_PERSPECTIVE_CLONE_MODE_PAINT", "paint" },
47 { 0, NULL, NULL }
48 };
49
50 static const GimpEnumDesc descs[] =
51 {
52 { GIMP_PERSPECTIVE_CLONE_MODE_ADJUST, NC_("perspective-clone-mode", "Modify Perspective"), NULL },
53 { GIMP_PERSPECTIVE_CLONE_MODE_PAINT, NC_("perspective-clone-mode", "Perspective Clone"), NULL },
54 { 0, NULL, NULL }
55 };
56
57 static GType type = 0;
58
59 if (G_UNLIKELY (! type))
60 {
61 type = g_enum_register_static ("GimpPerspectiveCloneMode", values);
62 gimp_type_set_translation_context (type, "perspective-clone-mode");
63 gimp_enum_set_value_descriptions (type, descs);
64 }
65
66 return type;
67 }
68
69 GType
gimp_source_align_mode_get_type(void)70 gimp_source_align_mode_get_type (void)
71 {
72 static const GEnumValue values[] =
73 {
74 { GIMP_SOURCE_ALIGN_NO, "GIMP_SOURCE_ALIGN_NO", "no" },
75 { GIMP_SOURCE_ALIGN_YES, "GIMP_SOURCE_ALIGN_YES", "yes" },
76 { GIMP_SOURCE_ALIGN_REGISTERED, "GIMP_SOURCE_ALIGN_REGISTERED", "registered" },
77 { GIMP_SOURCE_ALIGN_FIXED, "GIMP_SOURCE_ALIGN_FIXED", "fixed" },
78 { 0, NULL, NULL }
79 };
80
81 static const GimpEnumDesc descs[] =
82 {
83 { GIMP_SOURCE_ALIGN_NO, NC_("source-align-mode", "None"), NULL },
84 { GIMP_SOURCE_ALIGN_YES, NC_("source-align-mode", "Aligned"), NULL },
85 { GIMP_SOURCE_ALIGN_REGISTERED, NC_("source-align-mode", "Registered"), NULL },
86 { GIMP_SOURCE_ALIGN_FIXED, NC_("source-align-mode", "Fixed"), NULL },
87 { 0, NULL, NULL }
88 };
89
90 static GType type = 0;
91
92 if (G_UNLIKELY (! type))
93 {
94 type = g_enum_register_static ("GimpSourceAlignMode", values);
95 gimp_type_set_translation_context (type, "source-align-mode");
96 gimp_enum_set_value_descriptions (type, descs);
97 }
98
99 return type;
100 }
101
102
103 /* Generated data ends here */
104
105