~ubuntu-branches/ubuntu/vivid/gimp/vivid

« back to all changes in this revision

Viewing changes to libgimpconfig/gimpcolorconfig-enums.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-08 18:50:03 UTC
  • mto: (1.1.26) (0.5.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 71.
  • Revision ID: package-import@ubuntu.com-20120508185003-tltkvbaysf8d2426
ImportĀ upstreamĀ versionĀ 2.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
#include "config.h"
5
5
#include <glib-object.h>
6
 
#include "libgimpbase/gimpbasetypes.h"
 
6
#include "libgimpbase/gimpbase.h"
7
7
#include "gimpcolorconfig-enums.h"
8
8
#include "libgimp/libgimp-intl.h"
9
9
 
21
21
 
22
22
  static const GimpEnumDesc descs[] =
23
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 },
 
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", "Print simulation"), NULL },
27
27
    { 0, NULL, NULL }
28
28
  };
29
29
 
30
30
  static GType type = 0;
31
31
 
32
 
  if (! type)
 
32
  if (G_UNLIKELY (! type))
33
33
    {
34
34
      type = g_enum_register_static ("GimpColorManagementMode", values);
35
35
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
 
36
      gimp_type_set_translation_context (type, "color-management-mode");
36
37
      gimp_enum_set_value_descriptions (type, descs);
37
38
    }
38
39
 
53
54
 
54
55
  static const GimpEnumDesc descs[] =
55
56
  {
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 },
 
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 },
60
61
    { 0, NULL, NULL }
61
62
  };
62
63
 
63
64
  static GType type = 0;
64
65
 
65
 
  if (! type)
 
66
  if (G_UNLIKELY (! type))
66
67
    {
67
68
      type = g_enum_register_static ("GimpColorRenderingIntent", values);
68
69
      gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
 
70
      gimp_type_set_translation_context (type, "color-rendering-intent");
69
71
      gimp_enum_set_value_descriptions (type, descs);
70
72
    }
71
73