~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to libgimpconfig/gimpcolorconfig-enums.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* Generated data (by gimp-mkenums) */
 
3
 
 
4
#include "config.h"
 
5
#include <glib-object.h>
 
6
#include "libgimpbase/gimpbasetypes.h"
 
7
#include "gimpcolorconfig-enums.h"
 
8
#include "libgimp/libgimp-intl.h"
 
9
 
 
10
/* enumerations from "./gimpcolorconfig-enums.h" */
 
11
GType
 
12
gimp_color_management_mode_get_type (void)
 
13
{
 
14
  static const GEnumValue values[] =
 
15
  {
 
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 }
 
20
  };
 
21
 
 
22
  static const GimpEnumDesc descs[] =
 
23
  {
 
24
    { GIMP_COLOR_MANAGEMENT_OFF, N_("No color management"), NULL },
 
25
    { GIMP_COLOR_MANAGEMENT_DISPLAY, N_("Color managed display"), NULL },
 
26
    { GIMP_COLOR_MANAGEMENT_SOFTPROOF, N_("Print simulation"), NULL },
 
27
    { 0, NULL, NULL }
 
28
  };
 
29
 
 
30
  static GType type = 0;
 
31
 
 
32
  if (! type)
 
33
    {
 
34
      type = g_enum_register_static ("GimpColorManagementMode", values);
 
35
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
 
36
      gimp_enum_set_value_descriptions (type, descs);
 
37
    }
 
38
 
 
39
  return type;
 
40
}
 
41
 
 
42
GType
 
43
gimp_color_rendering_intent_get_type (void)
 
44
{
 
45
  static const GEnumValue values[] =
 
46
  {
 
47
    { GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL, "GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL", "perceptual" },
 
48
    { GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC, "GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC", "relative-colorimetric" },
 
49
    { GIMP_COLOR_RENDERING_INTENT_SATURATION, "GIMP_COLOR_RENDERING_INTENT_SATURATION", "saturation" },
 
50
    { GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC, "GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC", "absolute-colorimetric" },
 
51
    { 0, NULL, NULL }
 
52
  };
 
53
 
 
54
  static const GimpEnumDesc descs[] =
 
55
  {
 
56
    { GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL, N_("Perceptual"), NULL },
 
57
    { GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC, N_("Relative colorimetric"), NULL },
 
58
    { GIMP_COLOR_RENDERING_INTENT_SATURATION, N_("intent|Saturation"), NULL },
 
59
    { GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC, N_("Absolute colorimetric"), NULL },
 
60
    { 0, NULL, NULL }
 
61
  };
 
62
 
 
63
  static GType type = 0;
 
64
 
 
65
  if (! type)
 
66
    {
 
67
      type = g_enum_register_static ("GimpColorRenderingIntent", values);
 
68
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
 
69
      gimp_enum_set_value_descriptions (type, descs);
 
70
    }
 
71
 
 
72
  return type;
 
73
}
 
74
 
 
75
 
 
76
/* Generated data ends here */
 
77