gimpbaseenums.c 64.4 KB
Newer Older
1 2 3 4 5

/* Generated data (by gimp-mkenums) */

#include "config.h"
#include <glib-object.h>
6
#undef GIMP_DISABLE_DEPRECATED
7 8 9
#include "gimpbasetypes.h"
#include "libgimp/libgimp-intl.h"

10
/* enumerations from "gimpbaseenums.h" */
11 12 13 14 15
GType
gimp_add_mask_type_get_type (void)
{
  static const GEnumValue values[] =
  {
16 17 18 19 20 21 22
    { GIMP_ADD_MASK_WHITE, "GIMP_ADD_MASK_WHITE", "white" },
    { GIMP_ADD_MASK_BLACK, "GIMP_ADD_MASK_BLACK", "black" },
    { GIMP_ADD_MASK_ALPHA, "GIMP_ADD_MASK_ALPHA", "alpha" },
    { GIMP_ADD_MASK_ALPHA_TRANSFER, "GIMP_ADD_MASK_ALPHA_TRANSFER", "alpha-transfer" },
    { GIMP_ADD_MASK_SELECTION, "GIMP_ADD_MASK_SELECTION", "selection" },
    { GIMP_ADD_MASK_COPY, "GIMP_ADD_MASK_COPY", "copy" },
    { GIMP_ADD_MASK_CHANNEL, "GIMP_ADD_MASK_CHANNEL", "channel" },
23 24 25 26 27
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
28 29 30 31 32 33 34
    { GIMP_ADD_MASK_WHITE, NC_("add-mask-type", "_White (full opacity)"), NULL },
    { GIMP_ADD_MASK_BLACK, NC_("add-mask-type", "_Black (full transparency)"), NULL },
    { GIMP_ADD_MASK_ALPHA, NC_("add-mask-type", "Layer's _alpha channel"), NULL },
    { GIMP_ADD_MASK_ALPHA_TRANSFER, NC_("add-mask-type", "_Transfer layer's alpha channel"), NULL },
    { GIMP_ADD_MASK_SELECTION, NC_("add-mask-type", "_Selection"), NULL },
    { GIMP_ADD_MASK_COPY, NC_("add-mask-type", "_Grayscale copy of layer"), NULL },
    { GIMP_ADD_MASK_CHANNEL, NC_("add-mask-type", "C_hannel"), NULL },
35 36 37 38 39
    { 0, NULL, NULL }
  };

  static GType type = 0;

40
  if (G_UNLIKELY (! type))
41 42 43
    {
      type = g_enum_register_static ("GimpAddMaskType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
44
      gimp_type_set_translation_context (type, "add-mask-type");
45 46 47 48 49 50 51 52 53 54 55
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

GType
gimp_blend_mode_get_type (void)
{
  static const GEnumValue values[] =
  {
56 57 58 59
    { GIMP_BLEND_FG_BG_RGB, "GIMP_BLEND_FG_BG_RGB", "fg-bg-rgb" },
    { GIMP_BLEND_FG_BG_HSV, "GIMP_BLEND_FG_BG_HSV", "fg-bg-hsv" },
    { GIMP_BLEND_FG_TRANSPARENT, "GIMP_BLEND_FG_TRANSPARENT", "fg-transparent" },
    { GIMP_BLEND_CUSTOM, "GIMP_BLEND_CUSTOM", "custom" },
60 61 62 63 64
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
65 66 67 68
    { GIMP_BLEND_FG_BG_RGB, NC_("blend-mode", "FG to BG (RGB)"), NULL },
    { GIMP_BLEND_FG_BG_HSV, NC_("blend-mode", "FG to BG (HSV)"), NULL },
    { GIMP_BLEND_FG_TRANSPARENT, NC_("blend-mode", "FG to transparent"), NULL },
    { GIMP_BLEND_CUSTOM, NC_("blend-mode", "Custom gradient"), NULL },
69 70 71 72 73
    { 0, NULL, NULL }
  };

  static GType type = 0;

74
  if (G_UNLIKELY (! type))
75 76 77
    {
      type = g_enum_register_static ("GimpBlendMode", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
78
      gimp_type_set_translation_context (type, "blend-mode");
79 80 81 82 83 84
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
GType
gimp_brush_generated_shape_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_BRUSH_GENERATED_CIRCLE, "GIMP_BRUSH_GENERATED_CIRCLE", "circle" },
    { GIMP_BRUSH_GENERATED_SQUARE, "GIMP_BRUSH_GENERATED_SQUARE", "square" },
    { GIMP_BRUSH_GENERATED_DIAMOND, "GIMP_BRUSH_GENERATED_DIAMOND", "diamond" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
    { GIMP_BRUSH_GENERATED_CIRCLE, NC_("brush-generated-shape", "Circle"), NULL },
    { GIMP_BRUSH_GENERATED_SQUARE, NC_("brush-generated-shape", "Square"), NULL },
    { GIMP_BRUSH_GENERATED_DIAMOND, NC_("brush-generated-shape", "Diamond"), NULL },
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
      type = g_enum_register_static ("GimpBrushGeneratedShape", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
      gimp_type_set_translation_context (type, "brush-generated-shape");
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

117 118 119 120 121
GType
gimp_bucket_fill_mode_get_type (void)
{
  static const GEnumValue values[] =
  {
122 123 124
    { GIMP_BUCKET_FILL_FG, "GIMP_BUCKET_FILL_FG", "fg" },
    { GIMP_BUCKET_FILL_BG, "GIMP_BUCKET_FILL_BG", "bg" },
    { GIMP_BUCKET_FILL_PATTERN, "GIMP_BUCKET_FILL_PATTERN", "pattern" },
125 126 127 128 129
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
130 131 132
    { GIMP_BUCKET_FILL_FG, NC_("bucket-fill-mode", "FG color fill"), NULL },
    { GIMP_BUCKET_FILL_BG, NC_("bucket-fill-mode", "BG color fill"), NULL },
    { GIMP_BUCKET_FILL_PATTERN, NC_("bucket-fill-mode", "Pattern fill"), NULL },
133 134 135 136 137
    { 0, NULL, NULL }
  };

  static GType type = 0;

138
  if (G_UNLIKELY (! type))
139 140 141
    {
      type = g_enum_register_static ("GimpBucketFillMode", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
142
      gimp_type_set_translation_context (type, "bucket-fill-mode");
143 144 145 146 147 148
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
GType
gimp_cap_style_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_CAP_BUTT, "GIMP_CAP_BUTT", "butt" },
    { GIMP_CAP_ROUND, "GIMP_CAP_ROUND", "round" },
    { GIMP_CAP_SQUARE, "GIMP_CAP_SQUARE", "square" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
    { GIMP_CAP_BUTT, NC_("cap-style", "Butt"), NULL },
    { GIMP_CAP_ROUND, NC_("cap-style", "Round"), NULL },
    { GIMP_CAP_SQUARE, NC_("cap-style", "Square"), NULL },
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
      type = g_enum_register_static ("GimpCapStyle", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
      gimp_type_set_translation_context (type, "cap-style");
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

181 182 183 184 185 186 187 188 189 190 191 192 193 194
GType
gimp_channel_ops_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_CHANNEL_OP_ADD, "GIMP_CHANNEL_OP_ADD", "add" },
    { GIMP_CHANNEL_OP_SUBTRACT, "GIMP_CHANNEL_OP_SUBTRACT", "subtract" },
    { GIMP_CHANNEL_OP_REPLACE, "GIMP_CHANNEL_OP_REPLACE", "replace" },
    { GIMP_CHANNEL_OP_INTERSECT, "GIMP_CHANNEL_OP_INTERSECT", "intersect" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
195 196 197 198
    { GIMP_CHANNEL_OP_ADD, NC_("channel-ops", "Add to the current selection"), NULL },
    { GIMP_CHANNEL_OP_SUBTRACT, NC_("channel-ops", "Subtract from the current selection"), NULL },
    { GIMP_CHANNEL_OP_REPLACE, NC_("channel-ops", "Replace the current selection"), NULL },
    { GIMP_CHANNEL_OP_INTERSECT, NC_("channel-ops", "Intersect with the current selection"), NULL },
199 200 201 202 203
    { 0, NULL, NULL }
  };

  static GType type = 0;

204
  if (G_UNLIKELY (! type))
205 206 207
    {
      type = g_enum_register_static ("GimpChannelOps", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
208
      gimp_type_set_translation_context (type, "channel-ops");
209 210 211 212 213 214 215 216 217 218 219
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

GType
gimp_channel_type_get_type (void)
{
  static const GEnumValue values[] =
  {
220 221 222 223 224 225
    { GIMP_CHANNEL_RED, "GIMP_CHANNEL_RED", "red" },
    { GIMP_CHANNEL_GREEN, "GIMP_CHANNEL_GREEN", "green" },
    { GIMP_CHANNEL_BLUE, "GIMP_CHANNEL_BLUE", "blue" },
    { GIMP_CHANNEL_GRAY, "GIMP_CHANNEL_GRAY", "gray" },
    { GIMP_CHANNEL_INDEXED, "GIMP_CHANNEL_INDEXED", "indexed" },
    { GIMP_CHANNEL_ALPHA, "GIMP_CHANNEL_ALPHA", "alpha" },
226 227 228 229 230
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
231 232 233 234 235 236
    { GIMP_CHANNEL_RED, NC_("channel-type", "Red"), NULL },
    { GIMP_CHANNEL_GREEN, NC_("channel-type", "Green"), NULL },
    { GIMP_CHANNEL_BLUE, NC_("channel-type", "Blue"), NULL },
    { GIMP_CHANNEL_GRAY, NC_("channel-type", "Gray"), NULL },
    { GIMP_CHANNEL_INDEXED, NC_("channel-type", "Indexed"), NULL },
    { GIMP_CHANNEL_ALPHA, NC_("channel-type", "Alpha"), NULL },
237 238 239 240 241
    { 0, NULL, NULL }
  };

  static GType type = 0;

242
  if (G_UNLIKELY (! type))
243 244 245
    {
      type = g_enum_register_static ("GimpChannelType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
246
      gimp_type_set_translation_context (type, "channel-type");
247 248 249 250 251 252
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

253 254 255 256 257
GType
gimp_check_size_get_type (void)
{
  static const GEnumValue values[] =
  {
258 259 260 261 262 263 264 265
    { GIMP_CHECK_SIZE_SMALL_CHECKS, "GIMP_CHECK_SIZE_SMALL_CHECKS", "small-checks" },
    { GIMP_CHECK_SIZE_MEDIUM_CHECKS, "GIMP_CHECK_SIZE_MEDIUM_CHECKS", "medium-checks" },
    { GIMP_CHECK_SIZE_LARGE_CHECKS, "GIMP_CHECK_SIZE_LARGE_CHECKS", "large-checks" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
266 267 268
    { GIMP_CHECK_SIZE_SMALL_CHECKS, NC_("check-size", "Small"), NULL },
    { GIMP_CHECK_SIZE_MEDIUM_CHECKS, NC_("check-size", "Medium"), NULL },
    { GIMP_CHECK_SIZE_LARGE_CHECKS, NC_("check-size", "Large"), NULL },
269 270 271 272 273
    { 0, NULL, NULL }
  };

  static GType type = 0;

274
  if (G_UNLIKELY (! type))
275 276 277
    {
      type = g_enum_register_static ("GimpCheckSize", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
278
      gimp_type_set_translation_context (type, "check-size");
279 280
      gimp_enum_set_value_descriptions (type, descs);
    }
281 282 283 284 285 286 287 288 289

  return type;
}

GType
gimp_check_type_get_type (void)
{
  static const GEnumValue values[] =
  {
290 291 292 293 294 295 296 297 298 299 300
    { GIMP_CHECK_TYPE_LIGHT_CHECKS, "GIMP_CHECK_TYPE_LIGHT_CHECKS", "light-checks" },
    { GIMP_CHECK_TYPE_GRAY_CHECKS, "GIMP_CHECK_TYPE_GRAY_CHECKS", "gray-checks" },
    { GIMP_CHECK_TYPE_DARK_CHECKS, "GIMP_CHECK_TYPE_DARK_CHECKS", "dark-checks" },
    { GIMP_CHECK_TYPE_WHITE_ONLY, "GIMP_CHECK_TYPE_WHITE_ONLY", "white-only" },
    { GIMP_CHECK_TYPE_GRAY_ONLY, "GIMP_CHECK_TYPE_GRAY_ONLY", "gray-only" },
    { GIMP_CHECK_TYPE_BLACK_ONLY, "GIMP_CHECK_TYPE_BLACK_ONLY", "black-only" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
301 302 303 304 305 306
    { GIMP_CHECK_TYPE_LIGHT_CHECKS, NC_("check-type", "Light checks"), NULL },
    { GIMP_CHECK_TYPE_GRAY_CHECKS, NC_("check-type", "Mid-tone checks"), NULL },
    { GIMP_CHECK_TYPE_DARK_CHECKS, NC_("check-type", "Dark checks"), NULL },
    { GIMP_CHECK_TYPE_WHITE_ONLY, NC_("check-type", "White only"), NULL },
    { GIMP_CHECK_TYPE_GRAY_ONLY, NC_("check-type", "Gray only"), NULL },
    { GIMP_CHECK_TYPE_BLACK_ONLY, NC_("check-type", "Black only"), NULL },
307 308 309 310 311
    { 0, NULL, NULL }
  };

  static GType type = 0;

312
  if (G_UNLIKELY (! type))
313 314 315
    {
      type = g_enum_register_static ("GimpCheckType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
316
      gimp_type_set_translation_context (type, "check-type");
317 318
      gimp_enum_set_value_descriptions (type, descs);
    }
319 320 321 322

  return type;
}

323
GType
324
gimp_clone_type_get_type (void)
325 326 327
{
  static const GEnumValue values[] =
  {
328 329
    { GIMP_CLONE_IMAGE, "GIMP_CLONE_IMAGE", "image" },
    { GIMP_CLONE_PATTERN, "GIMP_CLONE_PATTERN", "pattern" },
330 331 332 333 334
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
335 336
    { GIMP_CLONE_IMAGE, NC_("clone-type", "Image"), NULL },
    { GIMP_CLONE_PATTERN, NC_("clone-type", "Pattern"), NULL },
337 338 339 340 341 342 343
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
344
      type = g_enum_register_static ("GimpCloneType", values);
345
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
346
      gimp_type_set_translation_context (type, "clone-type");
347 348 349 350 351 352
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396
GType
gimp_color_tag_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_COLOR_TAG_NONE, "GIMP_COLOR_TAG_NONE", "none" },
    { GIMP_COLOR_TAG_BLUE, "GIMP_COLOR_TAG_BLUE", "blue" },
    { GIMP_COLOR_TAG_GREEN, "GIMP_COLOR_TAG_GREEN", "green" },
    { GIMP_COLOR_TAG_YELLOW, "GIMP_COLOR_TAG_YELLOW", "yellow" },
    { GIMP_COLOR_TAG_ORANGE, "GIMP_COLOR_TAG_ORANGE", "orange" },
    { GIMP_COLOR_TAG_BROWN, "GIMP_COLOR_TAG_BROWN", "brown" },
    { GIMP_COLOR_TAG_RED, "GIMP_COLOR_TAG_RED", "red" },
    { GIMP_COLOR_TAG_VIOLET, "GIMP_COLOR_TAG_VIOLET", "violet" },
    { GIMP_COLOR_TAG_GRAY, "GIMP_COLOR_TAG_GRAY", "gray" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
    { GIMP_COLOR_TAG_NONE, NC_("color-tag", "None"), NULL },
    { GIMP_COLOR_TAG_BLUE, NC_("color-tag", "Blue"), NULL },
    { GIMP_COLOR_TAG_GREEN, NC_("color-tag", "Green"), NULL },
    { GIMP_COLOR_TAG_YELLOW, NC_("color-tag", "Yellow"), NULL },
    { GIMP_COLOR_TAG_ORANGE, NC_("color-tag", "Orange"), NULL },
    { GIMP_COLOR_TAG_BROWN, NC_("color-tag", "Brown"), NULL },
    { GIMP_COLOR_TAG_RED, NC_("color-tag", "Red"), NULL },
    { GIMP_COLOR_TAG_VIOLET, NC_("color-tag", "Violet"), NULL },
    { GIMP_COLOR_TAG_GRAY, NC_("color-tag", "Gray"), NULL },
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
      type = g_enum_register_static ("GimpColorTag", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
      gimp_type_set_translation_context (type, "color-tag");
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

397
GType
398
gimp_component_type_get_type (void)
399 400 401
{
  static const GEnumValue values[] =
  {
402 403 404 405 406 407
    { GIMP_COMPONENT_TYPE_U8, "GIMP_COMPONENT_TYPE_U8", "u8" },
    { GIMP_COMPONENT_TYPE_U16, "GIMP_COMPONENT_TYPE_U16", "u16" },
    { GIMP_COMPONENT_TYPE_U32, "GIMP_COMPONENT_TYPE_U32", "u32" },
    { GIMP_COMPONENT_TYPE_HALF, "GIMP_COMPONENT_TYPE_HALF", "half" },
    { GIMP_COMPONENT_TYPE_FLOAT, "GIMP_COMPONENT_TYPE_FLOAT", "float" },
    { GIMP_COMPONENT_TYPE_DOUBLE, "GIMP_COMPONENT_TYPE_DOUBLE", "double" },
408 409 410 411 412
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
413 414 415 416 417 418
    { GIMP_COMPONENT_TYPE_U8, NC_("component-type", "8-bit integer"), NULL },
    { GIMP_COMPONENT_TYPE_U16, NC_("component-type", "16-bit integer"), NULL },
    { GIMP_COMPONENT_TYPE_U32, NC_("component-type", "32-bit integer"), NULL },
    { GIMP_COMPONENT_TYPE_HALF, NC_("component-type", "16-bit floating point"), NULL },
    { GIMP_COMPONENT_TYPE_FLOAT, NC_("component-type", "32-bit floating point"), NULL },
    { GIMP_COMPONENT_TYPE_DOUBLE, NC_("component-type", "64-bit floating point"), NULL },
419 420 421 422 423 424 425
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
426
      type = g_enum_register_static ("GimpComponentType", values);
427
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
428
      gimp_type_set_translation_context (type, "component-type");
429 430 431 432 433 434
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

435 436 437 438 439
GType
gimp_convert_palette_type_get_type (void)
{
  static const GEnumValue values[] =
  {
440 441 442 443
    { GIMP_CONVERT_PALETTE_GENERATE, "GIMP_CONVERT_PALETTE_GENERATE", "generate" },
    { GIMP_CONVERT_PALETTE_WEB, "GIMP_CONVERT_PALETTE_WEB", "web" },
    { GIMP_CONVERT_PALETTE_MONO, "GIMP_CONVERT_PALETTE_MONO", "mono" },
    { GIMP_CONVERT_PALETTE_CUSTOM, "GIMP_CONVERT_PALETTE_CUSTOM", "custom" },
444 445 446 447 448
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
449 450 451 452
    { GIMP_CONVERT_PALETTE_GENERATE, NC_("convert-palette-type", "Generate optimum palette"), NULL },
    { GIMP_CONVERT_PALETTE_WEB, NC_("convert-palette-type", "Use web-optimized palette"), NULL },
    { GIMP_CONVERT_PALETTE_MONO, NC_("convert-palette-type", "Use black and white (1-bit) palette"), NULL },
    { GIMP_CONVERT_PALETTE_CUSTOM, NC_("convert-palette-type", "Use custom palette"), NULL },
453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
      type = g_enum_register_static ("GimpConvertPaletteType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
      gimp_type_set_translation_context (type, "convert-palette-type");
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

469
GType
470
gimp_convolve_type_get_type (void)
471 472 473
{
  static const GEnumValue values[] =
  {
474 475
    { GIMP_CONVOLVE_BLUR, "GIMP_CONVOLVE_BLUR", "blur" },
    { GIMP_CONVOLVE_SHARPEN, "GIMP_CONVOLVE_SHARPEN", "sharpen" },
476 477 478 479 480
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
481 482
    { GIMP_CONVOLVE_BLUR, NC_("convolve-type", "Blur"), NULL },
    { GIMP_CONVOLVE_SHARPEN, NC_("convolve-type", "Sharpen"), NULL },
483 484 485 486 487
    { 0, NULL, NULL }
  };

  static GType type = 0;

488
  if (G_UNLIKELY (! type))
489
    {
490
      type = g_enum_register_static ("GimpConvolveType", values);
491
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
492
      gimp_type_set_translation_context (type, "convolve-type");
493 494 495 496 497 498
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

499 500 501 502 503 504
GType
gimp_desaturate_mode_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_DESATURATE_LIGHTNESS, "GIMP_DESATURATE_LIGHTNESS", "lightness" },
505
    { GIMP_DESATURATE_LUMA, "GIMP_DESATURATE_LUMA", "luma" },
506
    { GIMP_DESATURATE_AVERAGE, "GIMP_DESATURATE_AVERAGE", "average" },
507
    { GIMP_DESATURATE_LUMINANCE, "GIMP_DESATURATE_LUMINANCE", "luminance" },
508
    { GIMP_DESATURATE_VALUE, "GIMP_DESATURATE_VALUE", "value" },
509 510 511 512 513
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
514
    { GIMP_DESATURATE_LIGHTNESS, NC_("desaturate-mode", "Lightness (HSL)"), NULL },
515
    { GIMP_DESATURATE_LUMA, NC_("desaturate-mode", "Luma"), NULL },
516
    { GIMP_DESATURATE_AVERAGE, NC_("desaturate-mode", "Average (HSI Intensity)"), NULL },
517
    { GIMP_DESATURATE_LUMINANCE, NC_("desaturate-mode", "Luminance"), NULL },
518
    { GIMP_DESATURATE_VALUE, NC_("desaturate-mode", "Value (HSV)"), NULL },
519 520 521 522 523
    { 0, NULL, NULL }
  };

  static GType type = 0;

524
  if (G_UNLIKELY (! type))
525 526 527
    {
      type = g_enum_register_static ("GimpDesaturateMode", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
528
      gimp_type_set_translation_context (type, "desaturate-mode");
529 530 531 532 533 534
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

535 536 537 538 539
GType
gimp_dodge_burn_type_get_type (void)
{
  static const GEnumValue values[] =
  {
540 541
    { GIMP_DODGE_BURN_TYPE_DODGE, "GIMP_DODGE_BURN_TYPE_DODGE", "dodge" },
    { GIMP_DODGE_BURN_TYPE_BURN, "GIMP_DODGE_BURN_TYPE_BURN", "burn" },
542 543 544 545 546
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
547 548
    { GIMP_DODGE_BURN_TYPE_DODGE, NC_("dodge-burn-type", "Dodge"), NULL },
    { GIMP_DODGE_BURN_TYPE_BURN, NC_("dodge-burn-type", "Burn"), NULL },
549 550 551 552 553
    { 0, NULL, NULL }
  };

  static GType type = 0;

554
  if (G_UNLIKELY (! type))
555 556 557
    {
      type = g_enum_register_static ("GimpDodgeBurnType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
558
      gimp_type_set_translation_context (type, "dodge-burn-type");
559 560 561 562 563 564
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

565 566 567 568 569
GType
gimp_fill_type_get_type (void)
{
  static const GEnumValue values[] =
  {
570 571 572 573 574
    { GIMP_FILL_FOREGROUND, "GIMP_FILL_FOREGROUND", "foreground" },
    { GIMP_FILL_BACKGROUND, "GIMP_FILL_BACKGROUND", "background" },
    { GIMP_FILL_WHITE, "GIMP_FILL_WHITE", "white" },
    { GIMP_FILL_TRANSPARENT, "GIMP_FILL_TRANSPARENT", "transparent" },
    { GIMP_FILL_PATTERN, "GIMP_FILL_PATTERN", "pattern" },
575 576 577 578 579
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
580 581 582 583 584
    { GIMP_FILL_FOREGROUND, NC_("fill-type", "Foreground color"), NULL },
    { GIMP_FILL_BACKGROUND, NC_("fill-type", "Background color"), NULL },
    { GIMP_FILL_WHITE, NC_("fill-type", "White"), NULL },
    { GIMP_FILL_TRANSPARENT, NC_("fill-type", "Transparency"), NULL },
    { GIMP_FILL_PATTERN, NC_("fill-type", "Pattern"), NULL },
585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
      type = g_enum_register_static ("GimpFillType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
      gimp_type_set_translation_context (type, "fill-type");
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

601 602 603 604 605 606
GType
gimp_foreground_extract_mode_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_FOREGROUND_EXTRACT_SIOX, "GIMP_FOREGROUND_EXTRACT_SIOX", "siox" },
607
    { GIMP_FOREGROUND_EXTRACT_MATTING, "GIMP_FOREGROUND_EXTRACT_MATTING", "matting" },
608 609 610 611 612 613
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
    { GIMP_FOREGROUND_EXTRACT_SIOX, "GIMP_FOREGROUND_EXTRACT_SIOX", NULL },
614
    { GIMP_FOREGROUND_EXTRACT_MATTING, "GIMP_FOREGROUND_EXTRACT_MATTING", NULL },
615 616 617 618 619
    { 0, NULL, NULL }
  };

  static GType type = 0;

620
  if (G_UNLIKELY (! type))
621 622 623
    {
      type = g_enum_register_static ("GimpForegroundExtractMode", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
624
      gimp_type_set_translation_context (type, "foreground-extract-mode");
625 626 627 628 629 630
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

631
GType
632
gimp_gradient_segment_color_get_type (void)
633 634 635
{
  static const GEnumValue values[] =
  {
636 637 638
    { GIMP_GRADIENT_SEGMENT_RGB, "GIMP_GRADIENT_SEGMENT_RGB", "rgb" },
    { GIMP_GRADIENT_SEGMENT_HSV_CCW, "GIMP_GRADIENT_SEGMENT_HSV_CCW", "hsv-ccw" },
    { GIMP_GRADIENT_SEGMENT_HSV_CW, "GIMP_GRADIENT_SEGMENT_HSV_CW", "hsv-cw" },
639 640 641 642 643
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
644 645 646
    { GIMP_GRADIENT_SEGMENT_RGB, NC_("gradient-segment-color", "RGB"), NULL },
    { GIMP_GRADIENT_SEGMENT_HSV_CCW, NC_("gradient-segment-color", "HSV (ccw)"), NULL },
    { GIMP_GRADIENT_SEGMENT_HSV_CW, NC_("gradient-segment-color", "HSV (cw)"), NULL },
647 648 649 650 651
    { 0, NULL, NULL }
  };

  static GType type = 0;

652
  if (G_UNLIKELY (! type))
653
    {
654
      type = g_enum_register_static ("GimpGradientSegmentColor", values);
655
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
656
      gimp_type_set_translation_context (type, "gradient-segment-color");
657 658 659 660 661 662
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

663
GType
664
gimp_gradient_segment_type_get_type (void)
665 666 667
{
  static const GEnumValue values[] =
  {
668 669 670 671 672
    { GIMP_GRADIENT_SEGMENT_LINEAR, "GIMP_GRADIENT_SEGMENT_LINEAR", "linear" },
    { GIMP_GRADIENT_SEGMENT_CURVED, "GIMP_GRADIENT_SEGMENT_CURVED", "curved" },
    { GIMP_GRADIENT_SEGMENT_SINE, "GIMP_GRADIENT_SEGMENT_SINE", "sine" },
    { GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING, "GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING", "sphere-increasing" },
    { GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING, "GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING", "sphere-decreasing" },
673 674 675 676 677
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
678 679 680 681 682
    { GIMP_GRADIENT_SEGMENT_LINEAR, NC_("gradient-segment-type", "Linear"), NULL },
    { GIMP_GRADIENT_SEGMENT_CURVED, NC_("gradient-segment-type", "Curved"), NULL },
    { GIMP_GRADIENT_SEGMENT_SINE, NC_("gradient-segment-type", "Sinusoidal"), NULL },
    { GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING, NC_("gradient-segment-type", "Spherical (inc)"), NULL },
    { GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING, NC_("gradient-segment-type", "Spherical (dec)"), NULL },
683 684 685 686 687 688 689
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
690
      type = g_enum_register_static ("GimpGradientSegmentType", values);
691
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
692
      gimp_type_set_translation_context (type, "gradient-segment-type");
693 694 695 696 697 698 699
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

GType
700
gimp_gradient_type_get_type (void)
701 702 703
{
  static const GEnumValue values[] =
  {
704 705 706 707 708 709 710 711 712 713 714
    { GIMP_GRADIENT_LINEAR, "GIMP_GRADIENT_LINEAR", "linear" },
    { GIMP_GRADIENT_BILINEAR, "GIMP_GRADIENT_BILINEAR", "bilinear" },
    { GIMP_GRADIENT_RADIAL, "GIMP_GRADIENT_RADIAL", "radial" },
    { GIMP_GRADIENT_SQUARE, "GIMP_GRADIENT_SQUARE", "square" },
    { GIMP_GRADIENT_CONICAL_SYMMETRIC, "GIMP_GRADIENT_CONICAL_SYMMETRIC", "conical-symmetric" },
    { GIMP_GRADIENT_CONICAL_ASYMMETRIC, "GIMP_GRADIENT_CONICAL_ASYMMETRIC", "conical-asymmetric" },
    { GIMP_GRADIENT_SHAPEBURST_ANGULAR, "GIMP_GRADIENT_SHAPEBURST_ANGULAR", "shapeburst-angular" },
    { GIMP_GRADIENT_SHAPEBURST_SPHERICAL, "GIMP_GRADIENT_SHAPEBURST_SPHERICAL", "shapeburst-spherical" },
    { GIMP_GRADIENT_SHAPEBURST_DIMPLED, "GIMP_GRADIENT_SHAPEBURST_DIMPLED", "shapeburst-dimpled" },
    { GIMP_GRADIENT_SPIRAL_CLOCKWISE, "GIMP_GRADIENT_SPIRAL_CLOCKWISE", "spiral-clockwise" },
    { GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE, "GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE", "spiral-anticlockwise" },
715 716 717 718 719
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
720 721 722 723 724 725 726 727 728 729 730
    { GIMP_GRADIENT_LINEAR, NC_("gradient-type", "Linear"), NULL },
    { GIMP_GRADIENT_BILINEAR, NC_("gradient-type", "Bi-linear"), NULL },
    { GIMP_GRADIENT_RADIAL, NC_("gradient-type", "Radial"), NULL },
    { GIMP_GRADIENT_SQUARE, NC_("gradient-type", "Square"), NULL },
    { GIMP_GRADIENT_CONICAL_SYMMETRIC, NC_("gradient-type", "Conical (sym)"), NULL },
    { GIMP_GRADIENT_CONICAL_ASYMMETRIC, NC_("gradient-type", "Conical (asym)"), NULL },
    { GIMP_GRADIENT_SHAPEBURST_ANGULAR, NC_("gradient-type", "Shaped (angular)"), NULL },
    { GIMP_GRADIENT_SHAPEBURST_SPHERICAL, NC_("gradient-type", "Shaped (spherical)"), NULL },
    { GIMP_GRADIENT_SHAPEBURST_DIMPLED, NC_("gradient-type", "Shaped (dimpled)"), NULL },
    { GIMP_GRADIENT_SPIRAL_CLOCKWISE, NC_("gradient-type", "Spiral (cw)"), NULL },
    { GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE, NC_("gradient-type", "Spiral (ccw)"), NULL },
731 732 733 734 735 736 737
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
738
      type = g_enum_register_static ("GimpGradientType", values);
739
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
740
      gimp_type_set_translation_context (type, "gradient-type");
741 742 743 744 745 746
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

747 748 749 750 751 752 753 754 755 756 757 758 759 760 761
GType
gimp_grid_style_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_GRID_DOTS, "GIMP_GRID_DOTS", "dots" },
    { GIMP_GRID_INTERSECTIONS, "GIMP_GRID_INTERSECTIONS", "intersections" },
    { GIMP_GRID_ON_OFF_DASH, "GIMP_GRID_ON_OFF_DASH", "on-off-dash" },
    { GIMP_GRID_DOUBLE_DASH, "GIMP_GRID_DOUBLE_DASH", "double-dash" },
    { GIMP_GRID_SOLID, "GIMP_GRID_SOLID", "solid" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
762 763 764 765 766
    { GIMP_GRID_DOTS, NC_("grid-style", "Intersections (dots)"), NULL },
    { GIMP_GRID_INTERSECTIONS, NC_("grid-style", "Intersections (crosshairs)"), NULL },
    { GIMP_GRID_ON_OFF_DASH, NC_("grid-style", "Dashed"), NULL },
    { GIMP_GRID_DOUBLE_DASH, NC_("grid-style", "Double dashed"), NULL },
    { GIMP_GRID_SOLID, NC_("grid-style", "Solid"), NULL },
767 768 769 770 771
    { 0, NULL, NULL }
  };

  static GType type = 0;

772
  if (G_UNLIKELY (! type))
773 774
    {
      type = g_enum_register_static ("GimpGridStyle", values);
775
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
776
      gimp_type_set_translation_context (type, "grid-style");
777 778 779 780 781 782
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

783 784 785 786 787
GType
gimp_hue_range_get_type (void)
{
  static const GEnumValue values[] =
  {
788 789 790 791 792 793 794
    { GIMP_HUE_RANGE_ALL, "GIMP_HUE_RANGE_ALL", "all" },
    { GIMP_HUE_RANGE_RED, "GIMP_HUE_RANGE_RED", "red" },
    { GIMP_HUE_RANGE_YELLOW, "GIMP_HUE_RANGE_YELLOW", "yellow" },
    { GIMP_HUE_RANGE_GREEN, "GIMP_HUE_RANGE_GREEN", "green" },
    { GIMP_HUE_RANGE_CYAN, "GIMP_HUE_RANGE_CYAN", "cyan" },
    { GIMP_HUE_RANGE_BLUE, "GIMP_HUE_RANGE_BLUE", "blue" },
    { GIMP_HUE_RANGE_MAGENTA, "GIMP_HUE_RANGE_MAGENTA", "magenta" },
795 796 797 798 799
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
800 801 802 803 804 805 806
    { GIMP_HUE_RANGE_ALL, "GIMP_HUE_RANGE_ALL", NULL },
    { GIMP_HUE_RANGE_RED, "GIMP_HUE_RANGE_RED", NULL },
    { GIMP_HUE_RANGE_YELLOW, "GIMP_HUE_RANGE_YELLOW", NULL },
    { GIMP_HUE_RANGE_GREEN, "GIMP_HUE_RANGE_GREEN", NULL },
    { GIMP_HUE_RANGE_CYAN, "GIMP_HUE_RANGE_CYAN", NULL },
    { GIMP_HUE_RANGE_BLUE, "GIMP_HUE_RANGE_BLUE", NULL },
    { GIMP_HUE_RANGE_MAGENTA, "GIMP_HUE_RANGE_MAGENTA", NULL },
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
      type = g_enum_register_static ("GimpHueRange", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
      gimp_type_set_translation_context (type, "hue-range");
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

823 824 825 826 827
GType
gimp_icon_type_get_type (void)
{
  static const GEnumValue values[] =
  {
828
    { GIMP_ICON_TYPE_ICON_NAME, "GIMP_ICON_TYPE_ICON_NAME", "icon-name" },
829 830 831 832 833 834 835
    { GIMP_ICON_TYPE_INLINE_PIXBUF, "GIMP_ICON_TYPE_INLINE_PIXBUF", "inline-pixbuf" },
    { GIMP_ICON_TYPE_IMAGE_FILE, "GIMP_ICON_TYPE_IMAGE_FILE", "image-file" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
836
    { GIMP_ICON_TYPE_ICON_NAME, NC_("icon-type", "Icon name"), NULL },
837 838
    { GIMP_ICON_TYPE_INLINE_PIXBUF, NC_("icon-type", "Inline pixbuf"), NULL },
    { GIMP_ICON_TYPE_IMAGE_FILE, NC_("icon-type", "Image file"), NULL },
839 840 841 842 843
    { 0, NULL, NULL }
  };

  static GType type = 0;

844
  if (G_UNLIKELY (! type))
845 846 847
    {
      type = g_enum_register_static ("GimpIconType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
848
      gimp_type_set_translation_context (type, "icon-type");
849 850 851 852 853 854
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

855 856 857 858 859
GType
gimp_image_base_type_get_type (void)
{
  static const GEnumValue values[] =
  {
860 861 862 863 864 865 866 867
    { GIMP_RGB, "GIMP_RGB", "rgb" },
    { GIMP_GRAY, "GIMP_GRAY", "gray" },
    { GIMP_INDEXED, "GIMP_INDEXED", "indexed" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
868 869 870
    { GIMP_RGB, NC_("image-base-type", "RGB color"), NULL },
    { GIMP_GRAY, NC_("image-base-type", "Grayscale"), NULL },
    { GIMP_INDEXED, NC_("image-base-type", "Indexed color"), NULL },
871 872 873 874 875
    { 0, NULL, NULL }
  };

  static GType type = 0;

876
  if (G_UNLIKELY (! type))
877 878 879
    {
      type = g_enum_register_static ("GimpImageBaseType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
880
      gimp_type_set_translation_context (type, "image-base-type");
881 882
      gimp_enum_set_value_descriptions (type, descs);
    }
883 884 885 886 887 888 889 890 891

  return type;
}

GType
gimp_image_type_get_type (void)
{
  static const GEnumValue values[] =
  {
892 893 894 895 896 897 898 899 900 901 902
    { GIMP_RGB_IMAGE, "GIMP_RGB_IMAGE", "rgb-image" },
    { GIMP_RGBA_IMAGE, "GIMP_RGBA_IMAGE", "rgba-image" },
    { GIMP_GRAY_IMAGE, "GIMP_GRAY_IMAGE", "gray-image" },
    { GIMP_GRAYA_IMAGE, "GIMP_GRAYA_IMAGE", "graya-image" },
    { GIMP_INDEXED_IMAGE, "GIMP_INDEXED_IMAGE", "indexed-image" },
    { GIMP_INDEXEDA_IMAGE, "GIMP_INDEXEDA_IMAGE", "indexeda-image" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
903 904 905 906 907 908
    { GIMP_RGB_IMAGE, NC_("image-type", "RGB"), NULL },
    { GIMP_RGBA_IMAGE, NC_("image-type", "RGB-alpha"), NULL },
    { GIMP_GRAY_IMAGE, NC_("image-type", "Grayscale"), NULL },
    { GIMP_GRAYA_IMAGE, NC_("image-type", "Grayscale-alpha"), NULL },
    { GIMP_INDEXED_IMAGE, NC_("image-type", "Indexed"), NULL },
    { GIMP_INDEXEDA_IMAGE, NC_("image-type", "Indexed-alpha"), NULL },
909 910 911 912 913
    { 0, NULL, NULL }
  };

  static GType type = 0;

914
  if (G_UNLIKELY (! type))
915 916 917
    {
      type = g_enum_register_static ("GimpImageType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
918
      gimp_type_set_translation_context (type, "image-type");
919 920
      gimp_enum_set_value_descriptions (type, descs);
    }
921 922 923 924

  return type;
}

925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956
GType
gimp_ink_blob_type_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_INK_BLOB_TYPE_CIRCLE, "GIMP_INK_BLOB_TYPE_CIRCLE", "circle" },
    { GIMP_INK_BLOB_TYPE_SQUARE, "GIMP_INK_BLOB_TYPE_SQUARE", "square" },
    { GIMP_INK_BLOB_TYPE_DIAMOND, "GIMP_INK_BLOB_TYPE_DIAMOND", "diamond" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
    { GIMP_INK_BLOB_TYPE_CIRCLE, NC_("ink-blob-type", "Circle"), NULL },
    { GIMP_INK_BLOB_TYPE_SQUARE, NC_("ink-blob-type", "Square"), NULL },
    { GIMP_INK_BLOB_TYPE_DIAMOND, NC_("ink-blob-type", "Diamond"), NULL },
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
      type = g_enum_register_static ("GimpInkBlobType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
      gimp_type_set_translation_context (type, "ink-blob-type");
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

957 958 959 960 961 962 963 964
GType
gimp_interpolation_type_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_INTERPOLATION_NONE, "GIMP_INTERPOLATION_NONE", "none" },
    { GIMP_INTERPOLATION_LINEAR, "GIMP_INTERPOLATION_LINEAR", "linear" },
    { GIMP_INTERPOLATION_CUBIC, "GIMP_INTERPOLATION_CUBIC", "cubic" },
965
    { GIMP_INTERPOLATION_NOHALO, "GIMP_INTERPOLATION_NOHALO", "nohalo" },
966
    { GIMP_INTERPOLATION_LOHALO, "GIMP_INTERPOLATION_LOHALO", "lohalo" },
967 968 969 970 971
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
972 973 974
    { GIMP_INTERPOLATION_NONE, NC_("interpolation-type", "None"), NULL },
    { GIMP_INTERPOLATION_LINEAR, NC_("interpolation-type", "Linear"), NULL },
    { GIMP_INTERPOLATION_CUBIC, NC_("interpolation-type", "Cubic"), NULL },
975
    { GIMP_INTERPOLATION_NOHALO, NC_("interpolation-type", "NoHalo"), NULL },
976
    { GIMP_INTERPOLATION_LOHALO, NC_("interpolation-type", "LoHalo"), NULL },
977 978 979 980 981
    { 0, NULL, NULL }
  };

  static GType type = 0;

982
  if (G_UNLIKELY (! type))
983 984 985
    {
      type = g_enum_register_static ("GimpInterpolationType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
986
      gimp_type_set_translation_context (type, "interpolation-type");
987 988 989 990 991 992
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024
GType
gimp_join_style_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_JOIN_MITER, "GIMP_JOIN_MITER", "miter" },
    { GIMP_JOIN_ROUND, "GIMP_JOIN_ROUND", "round" },
    { GIMP_JOIN_BEVEL, "GIMP_JOIN_BEVEL", "bevel" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
    { GIMP_JOIN_MITER, NC_("join-style", "Miter"), NULL },
    { GIMP_JOIN_ROUND, NC_("join-style", "Round"), NULL },
    { GIMP_JOIN_BEVEL, NC_("join-style", "Bevel"), NULL },
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
      type = g_enum_register_static ("GimpJoinStyle", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
      gimp_type_set_translation_context (type, "join-style");
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068
GType
gimp_mask_apply_mode_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_MASK_APPLY, "GIMP_MASK_APPLY", "apply" },
    { GIMP_MASK_DISCARD, "GIMP_MASK_DISCARD", "discard" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
    { GIMP_MASK_APPLY, "GIMP_MASK_APPLY", NULL },
    { GIMP_MASK_DISCARD, "GIMP_MASK_DISCARD", NULL },
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
      type = g_enum_register_static ("GimpMaskApplyMode", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
      gimp_type_set_translation_context (type, "mask-apply-mode");
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

GType
gimp_merge_type_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_EXPAND_AS_NECESSARY, "GIMP_EXPAND_AS_NECESSARY", "expand-as-necessary" },
    { GIMP_CLIP_TO_IMAGE, "GIMP_CLIP_TO_IMAGE", "clip-to-image" },
    { GIMP_CLIP_TO_BOTTOM_LAYER, "GIMP_CLIP_TO_BOTTOM_LAYER", "clip-to-bottom-layer" },
    { GIMP_FLATTEN_IMAGE, "GIMP_FLATTEN_IMAGE", "flatten-image" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1069
    { GIMP_EXPAND_AS_NECESSARY, NC_("merge-type", "Expanded as necessary"), NULL },
1070 1071 1072
    { GIMP_CLIP_TO_IMAGE, NC_("merge-type", "Clipped to image"), NULL },
    { GIMP_CLIP_TO_BOTTOM_LAYER, NC_("merge-type", "Clipped to bottom layer"), NULL },
    { GIMP_FLATTEN_IMAGE, NC_("merge-type", "Flatten"), NULL },
1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
      type = g_enum_register_static ("GimpMergeType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
      gimp_type_set_translation_context (type, "merge-type");
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120
GType
gimp_message_handler_type_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_MESSAGE_BOX, "GIMP_MESSAGE_BOX", "message-box" },
    { GIMP_CONSOLE, "GIMP_CONSOLE", "console" },
    { GIMP_ERROR_CONSOLE, "GIMP_ERROR_CONSOLE", "error-console" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
    { GIMP_MESSAGE_BOX, "GIMP_MESSAGE_BOX", NULL },
    { GIMP_CONSOLE, "GIMP_CONSOLE", NULL },
    { GIMP_ERROR_CONSOLE, "GIMP_ERROR_CONSOLE", NULL },
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
      type = g_enum_register_static ("GimpMessageHandlerType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
      gimp_type_set_translation_context (type, "message-handler-type");
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182
GType
gimp_offset_type_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_OFFSET_BACKGROUND, "GIMP_OFFSET_BACKGROUND", "background" },
    { GIMP_OFFSET_TRANSPARENT, "GIMP_OFFSET_TRANSPARENT", "transparent" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
    { GIMP_OFFSET_BACKGROUND, "GIMP_OFFSET_BACKGROUND", NULL },
    { GIMP_OFFSET_TRANSPARENT, "GIMP_OFFSET_TRANSPARENT", NULL },
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
      type = g_enum_register_static ("GimpOffsetType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
      gimp_type_set_translation_context (type, "offset-type");
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

GType
gimp_orientation_type_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_ORIENTATION_HORIZONTAL, "GIMP_ORIENTATION_HORIZONTAL", "horizontal" },
    { GIMP_ORIENTATION_VERTICAL, "GIMP_ORIENTATION_VERTICAL", "vertical" },
    { GIMP_ORIENTATION_UNKNOWN, "GIMP_ORIENTATION_UNKNOWN", "unknown" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
    { GIMP_ORIENTATION_HORIZONTAL, NC_("orientation-type", "Horizontal"), NULL },
    { GIMP_ORIENTATION_VERTICAL, NC_("orientation-type", "Vertical"), NULL },
    { GIMP_ORIENTATION_UNKNOWN, NC_("orientation-type", "Unknown"), NULL },
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
      type = g_enum_register_static ("GimpOrientationType", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
      gimp_type_set_translation_context (type, "orientation-type");
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194
GType
gimp_paint_application_mode_get_type (void)
{
  static const GEnumValue values[] =
  {
    { GIMP_PAINT_CONSTANT, "GIMP_PAINT_CONSTANT", "constant" },
    { GIMP_PAINT_INCREMENTAL, "GIMP_PAINT_INCREMENTAL", "incremental" },
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1195 1196
    { GIMP_PAINT_CONSTANT, NC_("paint-application-mode", "Constant"), NULL },
    { GIMP_PAINT_INCREMENTAL, NC_("paint-application-mode", "Incremental"), NULL },
1197 1198 1199 1200 1201
    { 0, NULL, NULL }
  };

  static GType type = 0;

1202
  if (G_UNLIKELY (! type))
1203 1204 1205
    {
      type = g_enum_register_static ("GimpPaintApplicationMode", values);
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
1206
      gimp_type_set_translation_context (type, "paint-application-mode");
1207 1208 1209 1210 1211 1212
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

1213
GType
1214
gimp_pdb_arg_type_get_type (void)
1215 1216 1217
{
  static const GEnumValue values[] =
  {
1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240
    { GIMP_PDB_INT32, "GIMP_PDB_INT32", "int32" },
    { GIMP_PDB_INT16, "GIMP_PDB_INT16", "int16" },
    { GIMP_PDB_INT8, "GIMP_PDB_INT8", "int8" },
    { GIMP_PDB_FLOAT, "GIMP_PDB_FLOAT", "float" },
    { GIMP_PDB_STRING, "GIMP_PDB_STRING", "string" },
    { GIMP_PDB_INT32ARRAY, "GIMP_PDB_INT32ARRAY", "int32array" },
    { GIMP_PDB_INT16ARRAY, "GIMP_PDB_INT16ARRAY", "int16array" },
    { GIMP_PDB_INT8ARRAY, "GIMP_PDB_INT8ARRAY", "int8array" },
    { GIMP_PDB_FLOATARRAY, "GIMP_PDB_FLOATARRAY", "floatarray" },
    { GIMP_PDB_STRINGARRAY, "GIMP_PDB_STRINGARRAY", "stringarray" },
    { GIMP_PDB_COLOR, "GIMP_PDB_COLOR", "color" },
    { GIMP_PDB_ITEM, "GIMP_PDB_ITEM", "item" },
    { GIMP_PDB_DISPLAY, "GIMP_PDB_DISPLAY", "display" },
    { GIMP_PDB_IMAGE, "GIMP_PDB_IMAGE", "image" },
    { GIMP_PDB_LAYER, "GIMP_PDB_LAYER", "layer" },
    { GIMP_PDB_CHANNEL, "GIMP_PDB_CHANNEL", "channel" },
    { GIMP_PDB_DRAWABLE, "GIMP_PDB_DRAWABLE", "drawable" },
    { GIMP_PDB_SELECTION, "GIMP_PDB_SELECTION", "selection" },
    { GIMP_PDB_COLORARRAY, "GIMP_PDB_COLORARRAY", "colorarray" },
    { GIMP_PDB_VECTORS, "GIMP_PDB_VECTORS", "vectors" },
    { GIMP_PDB_PARASITE, "GIMP_PDB_PARASITE", "parasite" },
    { GIMP_PDB_STATUS, "GIMP_PDB_STATUS", "status" },
    { GIMP_PDB_END, "GIMP_PDB_END", "end" },
1241 1242 1243 1244 1245
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268
    { GIMP_PDB_INT32, "GIMP_PDB_INT32", NULL },
    { GIMP_PDB_INT16, "GIMP_PDB_INT16", NULL },
    { GIMP_PDB_INT8, "GIMP_PDB_INT8", NULL },
    { GIMP_PDB_FLOAT, "GIMP_PDB_FLOAT", NULL },
    { GIMP_PDB_STRING, "GIMP_PDB_STRING", NULL },
    { GIMP_PDB_INT32ARRAY, "GIMP_PDB_INT32ARRAY", NULL },
    { GIMP_PDB_INT16ARRAY, "GIMP_PDB_INT16ARRAY", NULL },
    { GIMP_PDB_INT8ARRAY, "GIMP_PDB_INT8ARRAY", NULL },
    { GIMP_PDB_FLOATARRAY, "GIMP_PDB_FLOATARRAY", NULL },
    { GIMP_PDB_STRINGARRAY, "GIMP_PDB_STRINGARRAY", NULL },
    { GIMP_PDB_COLOR, "GIMP_PDB_COLOR", NULL },
    { GIMP_PDB_ITEM, "GIMP_PDB_ITEM", NULL },
    { GIMP_PDB_DISPLAY, "GIMP_PDB_DISPLAY", NULL },
    { GIMP_PDB_IMAGE, "GIMP_PDB_IMAGE", NULL },
    { GIMP_PDB_LAYER, "GIMP_PDB_LAYER", NULL },
    { GIMP_PDB_CHANNEL, "GIMP_PDB_CHANNEL", NULL },
    { GIMP_PDB_DRAWABLE, "GIMP_PDB_DRAWABLE", NULL },
    { GIMP_PDB_SELECTION, "GIMP_PDB_SELECTION", NULL },
    { GIMP_PDB_COLORARRAY, "GIMP_PDB_COLORARRAY", NULL },
    { GIMP_PDB_VECTORS, "GIMP_PDB_VECTORS", NULL },
    { GIMP_PDB_PARASITE, "GIMP_PDB_PARASITE", NULL },
    { GIMP_PDB_STATUS, "GIMP_PDB_STATUS", NULL },
    { GIMP_PDB_END, "GIMP_PDB_END", NULL },
1269 1270 1271 1272 1273 1274 1275
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
1276
      type = g_enum_register_static ("GimpPDBArgType", values);
1277
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
1278
      gimp_type_set_translation_context (type, "pdb-arg-type");
1279 1280 1281 1282 1283 1284
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

1285
GType
1286
gimp_pdb_error_handler_get_type (void)
1287 1288 1289
{
  static const GEnumValue values[] =
  {
1290 1291
    { GIMP_PDB_ERROR_HANDLER_INTERNAL, "GIMP_PDB_ERROR_HANDLER_INTERNAL", "internal" },
    { GIMP_PDB_ERROR_HANDLER_PLUGIN, "GIMP_PDB_ERROR_HANDLER_PLUGIN", "plugin" },
1292 1293 1294 1295 1296
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1297 1298
    { GIMP_PDB_ERROR_HANDLER_INTERNAL, "GIMP_PDB_ERROR_HANDLER_INTERNAL", NULL },
    { GIMP_PDB_ERROR_HANDLER_PLUGIN, "GIMP_PDB_ERROR_HANDLER_PLUGIN", NULL },
1299 1300 1301 1302 1303 1304 1305
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
1306
      type = g_enum_register_static ("GimpPDBErrorHandler", values);
1307
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
1308
      gimp_type_set_translation_context (type, "pdb-error-handler");
1309 1310 1311 1312 1313 1314
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

1315
GType
1316
gimp_pdb_proc_type_get_type (void)
1317 1318 1319
{
  static const GEnumValue values[] =
  {
1320 1321 1322 1323
    { GIMP_INTERNAL, "GIMP_INTERNAL", "internal" },
    { GIMP_PLUGIN, "GIMP_PLUGIN", "plugin" },
    { GIMP_EXTENSION, "GIMP_EXTENSION", "extension" },
    { GIMP_TEMPORARY, "GIMP_TEMPORARY", "temporary" },
1324 1325 1326 1327 1328
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1329
    { GIMP_INTERNAL, NC_("pdb-proc-type", "Internal GIMP procedure"), NULL },
1330
    { GIMP_PLUGIN, NC_("pdb-proc-type", "GIMP Plug-In"), NULL },
1331 1332
    { GIMP_EXTENSION, NC_("pdb-proc-type", "GIMP Extension"), NULL },
    { GIMP_TEMPORARY, NC_("pdb-proc-type", "Temporary Procedure"), NULL },
1333 1334 1335 1336 1337
    { 0, NULL, NULL }
  };

  static GType type = 0;

1338
  if (G_UNLIKELY (! type))
1339
    {
1340
      type = g_enum_register_static ("GimpPDBProcType", values);
1341
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
1342
      gimp_type_set_translation_context (type, "pdb-proc-type");
1343 1344 1345 1346 1347 1348
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

1349
GType
1350
gimp_pdb_status_type_get_type (void)
1351 1352 1353
{
  static const GEnumValue values[] =
  {
1354 1355 1356 1357 1358
    { GIMP_PDB_EXECUTION_ERROR, "GIMP_PDB_EXECUTION_ERROR", "execution-error" },
    { GIMP_PDB_CALLING_ERROR, "GIMP_PDB_CALLING_ERROR", "calling-error" },
    { GIMP_PDB_PASS_THROUGH, "GIMP_PDB_PASS_THROUGH", "pass-through" },
    { GIMP_PDB_SUCCESS, "GIMP_PDB_SUCCESS", "success" },
    { GIMP_PDB_CANCEL, "GIMP_PDB_CANCEL", "cancel" },
1359 1360 1361 1362 1363
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1364 1365 1366 1367 1368
    { GIMP_PDB_EXECUTION_ERROR, "GIMP_PDB_EXECUTION_ERROR", NULL },
    { GIMP_PDB_CALLING_ERROR, "GIMP_PDB_CALLING_ERROR", NULL },
    { GIMP_PDB_PASS_THROUGH, "GIMP_PDB_PASS_THROUGH", NULL },
    { GIMP_PDB_SUCCESS, "GIMP_PDB_SUCCESS", NULL },
    { GIMP_PDB_CANCEL, "GIMP_PDB_CANCEL", NULL },
1369 1370 1371 1372 1373 1374 1375
    { 0, NULL, NULL }
  };

  static GType type = 0;

  if (G_UNLIKELY (! type))
    {
1376
      type = g_enum_register_static ("GimpPDBStatusType", values);
1377
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
1378
      gimp_type_set_translation_context (type, "pdb-status-type");
1379 1380 1381 1382 1383 1384
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

1385
GType
1386
gimp_precision_get_type (void)
1387 1388 1389
{
  static const GEnumValue values[] =
  {
1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401
    { GIMP_PRECISION_U8_LINEAR, "GIMP_PRECISION_U8_LINEAR", "u8-linear" },
    { GIMP_PRECISION_U8_GAMMA, "GIMP_PRECISION_U8_GAMMA", "u8-gamma" },
    { GIMP_PRECISION_U16_LINEAR, "GIMP_PRECISION_U16_LINEAR", "u16-linear" },
    { GIMP_PRECISION_U16_GAMMA, "GIMP_PRECISION_U16_GAMMA", "u16-gamma" },
    { GIMP_PRECISION_U32_LINEAR, "GIMP_PRECISION_U32_LINEAR", "u32-linear" },
    { GIMP_PRECISION_U32_GAMMA, "GIMP_PRECISION_U32_GAMMA", "u32-gamma" },
    { GIMP_PRECISION_HALF_LINEAR, "GIMP_PRECISION_HALF_LINEAR", "half-linear" },
    { GIMP_PRECISION_HALF_GAMMA, "GIMP_PRECISION_HALF_GAMMA", "half-gamma" },
    { GIMP_PRECISION_FLOAT_LINEAR, "GIMP_PRECISION_FLOAT_LINEAR", "float-linear" },
    { GIMP_PRECISION_FLOAT_GAMMA, "GIMP_PRECISION_FLOAT_GAMMA", "float-gamma" },
    { GIMP_PRECISION_DOUBLE_LINEAR, "GIMP_PRECISION_DOUBLE_LINEAR", "double-linear" },
    { GIMP_PRECISION_DOUBLE_GAMMA, "GIMP_PRECISION_DOUBLE_GAMMA", "double-gamma" },
1402 1403 1404 1405 1406
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418
    { GIMP_PRECISION_U8_LINEAR, NC_("precision", "8-bit linear integer"), NULL },
    { GIMP_PRECISION_U8_GAMMA, NC_("precision", "8-bit gamma integer"), NULL },
    { GIMP_PRECISION_U16_LINEAR, NC_("precision", "16-bit linear integer"), NULL },
    { GIMP_PRECISION_U16_GAMMA, NC_("precision", "16-bit gamma integer"), NULL },
    { GIMP_PRECISION_U32_LINEAR, NC_("precision", "32-bit linear integer"), NULL },
    { GIMP_PRECISION_U32_GAMMA, NC_("precision", "32-bit gamma integer"), NULL },
    { GIMP_PRECISION_HALF_LINEAR, NC_("precision", "16-bit linear floating point"), NULL },
    { GIMP_PRECISION_HALF_GAMMA, NC_("precision", "16-bit gamma floating point"), NULL },
    { GIMP_PRECISION_FLOAT_LINEAR, NC_("precision", "32-bit linear floating point"), NULL },
    { GIMP_PRECISION_FLOAT_GAMMA, NC_("precision", "32-bit gamma floating point"), NULL },
    { GIMP_PRECISION_DOUBLE_LINEAR, NC_("precision", "64-bit linear floating point"), NULL },
    { GIMP_PRECISION_DOUBLE_GAMMA, NC_("precision", "64-bit gamma floating point"), NULL },
1419 1420 1421 1422 1423
    { 0, NULL, NULL }
  };

  static GType type = 0;

1424
  if (G_UNLIKELY (! type))
1425
    {
1426
      type = g_enum_register_static ("GimpPrecision", values);
1427
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
1428
      gimp_type_set_translation_context (type, "precision");
1429 1430 1431 1432 1433 1434
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

1435
GType
1436
gimp_progress_command_get_type (void)
1437 1438 1439
{
  static const GEnumValue values[] =
  {
1440 1441 1442 1443 1444 1445
    { GIMP_PROGRESS_COMMAND_START, "GIMP_PROGRESS_COMMAND_START", "start" },
    { GIMP_PROGRESS_COMMAND_END, "GIMP_PROGRESS_COMMAND_END", "end" },
    { GIMP_PROGRESS_COMMAND_SET_TEXT, "GIMP_PROGRESS_COMMAND_SET_TEXT", "set-text" },
    { GIMP_PROGRESS_COMMAND_SET_VALUE, "GIMP_PROGRESS_COMMAND_SET_VALUE", "set-value" },
    { GIMP_PROGRESS_COMMAND_PULSE, "GIMP_PROGRESS_COMMAND_PULSE", "pulse" },
    { GIMP_PROGRESS_COMMAND_GET_WINDOW, "GIMP_PROGRESS_COMMAND_GET_WINDOW", "get-window" },
1446 1447 1448 1449 1450
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1451 1452 1453 1454 1455 1456
    { GIMP_PROGRESS_COMMAND_START, "GIMP_PROGRESS_COMMAND_START", NULL },
    { GIMP_PROGRESS_COMMAND_END, "GIMP_PROGRESS_COMMAND_END", NULL },
    { GIMP_PROGRESS_COMMAND_SET_TEXT, "GIMP_PROGRESS_COMMAND_SET_TEXT", NULL },
    { GIMP_PROGRESS_COMMAND_SET_VALUE, "GIMP_PROGRESS_COMMAND_SET_VALUE", NULL },
    { GIMP_PROGRESS_COMMAND_PULSE, "GIMP_PROGRESS_COMMAND_PULSE", NULL },
    { GIMP_PROGRESS_COMMAND_GET_WINDOW, "GIMP_PROGRESS_COMMAND_GET_WINDOW", NULL },
1457 1458 1459 1460 1461
    { 0, NULL, NULL }
  };

  static GType type = 0;

1462
  if (G_UNLIKELY (! type))
1463
    {
1464
      type = g_enum_register_static ("GimpProgressCommand", values);
1465
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
1466
      gimp_type_set_translation_context (type, "progress-command");
1467 1468 1469 1470 1471 1472
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

1473
GType
1474
gimp_repeat_mode_get_type (void)
1475 1476 1477
{
  static const GEnumValue values[] =
  {
1478 1479 1480 1481
    { GIMP_REPEAT_NONE, "GIMP_REPEAT_NONE", "none" },
    { GIMP_REPEAT_SAWTOOTH, "GIMP_REPEAT_SAWTOOTH", "sawtooth" },
    { GIMP_REPEAT_TRIANGULAR, "GIMP_REPEAT_TRIANGULAR", "triangular" },
    { GIMP_REPEAT_TRUNCATE, "GIMP_REPEAT_TRUNCATE", "truncate" },
1482 1483 1484 1485 1486
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1487 1488 1489 1490
    { GIMP_REPEAT_NONE, NC_("repeat-mode", "None (extend)"), NULL },
    { GIMP_REPEAT_SAWTOOTH, NC_("repeat-mode", "Sawtooth wave"), NULL },
    { GIMP_REPEAT_TRIANGULAR, NC_("repeat-mode", "Triangular wave"), NULL },
    { GIMP_REPEAT_TRUNCATE, NC_("repeat-mode", "Truncate"), NULL },
1491 1492 1493 1494 1495
    { 0, NULL, NULL }
  };

  static GType type = 0;

1496
  if (G_UNLIKELY (! type))
1497
    {
1498
      type = g_enum_register_static ("GimpRepeatMode", values);
1499
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
1500
      gimp_type_set_translation_context (type, "repeat-mode");
1501 1502 1503 1504 1505 1506
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

1507
GType
1508
gimp_rotation_type_get_type (void)
1509 1510 1511
{
  static const GEnumValue values[] =
  {
1512 1513 1514
    { GIMP_ROTATE_90, "GIMP_ROTATE_90", "90" },
    { GIMP_ROTATE_180, "GIMP_ROTATE_180", "180" },
    { GIMP_ROTATE_270, "GIMP_ROTATE_270", "270" },
1515 1516 1517 1518 1519
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1520 1521 1522
    { GIMP_ROTATE_90, "GIMP_ROTATE_90", NULL },
    { GIMP_ROTATE_180, "GIMP_ROTATE_180", NULL },
    { GIMP_ROTATE_270, "GIMP_ROTATE_270", NULL },
1523 1524 1525 1526 1527
    { 0, NULL, NULL }
  };

  static GType type = 0;

1528
  if (G_UNLIKELY (! type))
1529
    {
1530
      type = g_enum_register_static ("GimpRotationType", values);
1531
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
1532
      gimp_type_set_translation_context (type, "rotation-type");
1533 1534 1535 1536 1537 1538
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

1539
GType
1540
gimp_run_mode_get_type (void)
1541 1542 1543
{
  static const GEnumValue values[] =
  {
1544 1545 1546
    { GIMP_RUN_INTERACTIVE, "GIMP_RUN_INTERACTIVE", "interactive" },
    { GIMP_RUN_NONINTERACTIVE, "GIMP_RUN_NONINTERACTIVE", "noninteractive" },
    { GIMP_RUN_WITH_LAST_VALS, "GIMP_RUN_WITH_LAST_VALS", "with-last-vals" },
1547 1548 1549 1550 1551
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1552 1553 1554
    { GIMP_RUN_INTERACTIVE, NC_("run-mode", "Run interactively"), NULL },
    { GIMP_RUN_NONINTERACTIVE, NC_("run-mode", "Run non-interactively"), NULL },
    { GIMP_RUN_WITH_LAST_VALS, NC_("run-mode", "Run with last used values"), NULL },
1555 1556 1557 1558 1559
    { 0, NULL, NULL }
  };

  static GType type = 0;

1560
  if (G_UNLIKELY (! type))
1561
    {
1562
      type = g_enum_register_static ("GimpRunMode", values);
1563
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
1564
      gimp_type_set_translation_context (type, "run-mode");
1565 1566 1567 1568 1569 1570 1571
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

GType
1572
gimp_select_criterion_get_type (void)
1573 1574 1575
{
  static const GEnumValue values[] =
  {
1576 1577 1578 1579 1580 1581 1582
    { GIMP_SELECT_CRITERION_COMPOSITE, "GIMP_SELECT_CRITERION_COMPOSITE", "composite" },
    { GIMP_SELECT_CRITERION_R, "GIMP_SELECT_CRITERION_R", "r" },
    { GIMP_SELECT_CRITERION_G, "GIMP_SELECT_CRITERION_G", "g" },
    { GIMP_SELECT_CRITERION_B, "GIMP_SELECT_CRITERION_B", "b" },
    { GIMP_SELECT_CRITERION_H, "GIMP_SELECT_CRITERION_H", "h" },
    { GIMP_SELECT_CRITERION_S, "GIMP_SELECT_CRITERION_S", "s" },
    { GIMP_SELECT_CRITERION_V, "GIMP_SELECT_CRITERION_V", "v" },
1583
    { GIMP_SELECT_CRITERION_A, "GIMP_SELECT_CRITERION_A", "a" },
1584 1585 1586
    { GIMP_SELECT_CRITERION_LCH_L, "GIMP_SELECT_CRITERION_LCH_L", "lch-l" },
    { GIMP_SELECT_CRITERION_LCH_C, "GIMP_SELECT_CRITERION_LCH_C", "lch-c" },
    { GIMP_SELECT_CRITERION_LCH_H, "GIMP_SELECT_CRITERION_LCH_H", "lch-h" },
1587 1588 1589 1590 1591
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1592 1593 1594 1595
    { GIMP_SELECT_CRITERION_COMPOSITE, NC_("select-criterion", "Composite"), NULL },
    { GIMP_SELECT_CRITERION_R, NC_("select-criterion", "Red"), NULL },
    { GIMP_SELECT_CRITERION_G, NC_("select-criterion", "Green"), NULL },
    { GIMP_SELECT_CRITERION_B, NC_("select-criterion", "Blue"), NULL },
1596 1597 1598
    { GIMP_SELECT_CRITERION_H, NC_("select-criterion", "Hue (HSV)"), NULL },
    { GIMP_SELECT_CRITERION_S, NC_("select-criterion", "Saturation (HSV)"), NULL },
    { GIMP_SELECT_CRITERION_V, NC_("select-criterion", "Value (HSV)"), NULL },
1599
    { GIMP_SELECT_CRITERION_A, NC_("select-criterion", "Alpha"), NULL },
1600 1601 1602
    { GIMP_SELECT_CRITERION_LCH_L, NC_("select-criterion", "Lightness (LCH)"), NULL },
    { GIMP_SELECT_CRITERION_LCH_C, NC_("select-criterion", "Chroma (LCH)"), NULL },
    { GIMP_SELECT_CRITERION_LCH_H, NC_("select-criterion", "Hue (LCH)"), NULL },
1603 1604 1605 1606 1607
    { 0, NULL, NULL }
  };

  static GType type = 0;

1608
  if (G_UNLIKELY (! type))
1609
    {
1610
      type = g_enum_register_static ("GimpSelectCriterion", values);
1611
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
1612
      gimp_type_set_translation_context (type, "select-criterion");
1613 1614 1615 1616 1617 1618 1619
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

GType
1620
gimp_size_type_get_type (void)
1621 1622 1623
{
  static const GEnumValue values[] =
  {
1624 1625
    { GIMP_PIXELS, "GIMP_PIXELS", "pixels" },
    { GIMP_POINTS, "GIMP_POINTS", "points" },
1626 1627 1628 1629 1630
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1631 1632
    { GIMP_PIXELS, NC_("size-type", "Pixels"), NULL },
    { GIMP_POINTS, NC_("size-type", "Points"), NULL },
1633 1634 1635 1636 1637
    { 0, NULL, NULL }
  };

  static GType type = 0;

1638
  if (G_UNLIKELY (! type))
1639
    {
1640
      type = g_enum_register_static ("GimpSizeType", values);
1641
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
1642
      gimp_type_set_translation_context (type, "size-type");
1643 1644 1645 1646 1647 1648 1649
      gimp_enum_set_value_descriptions (type, descs);
    }

  return type;
}

GType
1650
gimp_stack_trace_mode_get_type (void)
1651 1652 1653
{
  static const GEnumValue values[] =
  {
1654 1655 1656
    { GIMP_STACK_TRACE_NEVER, "GIMP_STACK_TRACE_NEVER", "never" },
    { GIMP_STACK_TRACE_QUERY, "GIMP_STACK_TRACE_QUERY", "query" },
    { GIMP_STACK_TRACE_ALWAYS, "GIMP_STACK_TRACE_ALWAYS", "always" },
1657 1658 1659 1660 1661
    { 0, NULL, NULL }
  };

  static const GimpEnumDesc descs[] =
  {
1662 1663 1664
    { GIMP_STACK_TRACE_NEVER, "GIMP_STACK_TRACE_NEVER", NULL },
    { GIMP_STACK_TRACE_QUERY, "GIMP_STACK_TRACE_QUERY", NULL },
    { GIMP_STACK_TRACE_ALWAYS, "GIMP_STACK_TRACE_ALWAYS", NULL },
1665 1666 1667 1668 1669
    { 0, NULL, NULL }
  };

  static GType type = 0;

1670
  if (G_UNLIKELY (! type))
1671
    {
1672
      type