2008-11-06 Sven Neumann <sven@gimp.org> * tools/gimp-mkenums: use NC_() to mark enum values for translation. Use a lower-case short form of the type name as translation context. * libgimp/libgimp-intl.h: define the NC_() macro as noop. * libgimpbase/gimpbasetypes.[ch] * libgimpbase/gimpbase.def: added new functions to set and get a translation context on an enum type. * app/base/Makefile.am * app/core/Makefile.am * app/display/Makefile.am * app/paint/Makefile.am * app/plug-in/Makefile.am * app/text/Makefile.am * app/tools/Makefile.am * app/widgets/Makefile.am * libgimp/Makefile.am * libgimpbase/Makefile.am: * libgimpconfig/Makefile.am * libgimpthumb/Makefile.am * libgimpwidgets/Makefile.am: register the translation context with the enum types. * app/display/display-enums.h * libgimpbase/gimpbaseenums.h * libgimpconfig/gimpcolorconfig-enums.h: removed old-style explicit translation context. * app/base/base-enums.c * app/core/core-enums.c * app/display/display-enums.c * app/paint/paint-enums.c * app/plug-in/plug-in-enums.c * app/text/text-enums.c * app/tools/tools-enums.c * app/widgets/widgets-enums.c * libgimpbase/gimpbaseenums.c * libgimpconfig/gimpcolorconfig-enums.c * libgimpwidgets/gimpwidgetsenums.c: regenerated. svn path=/trunk/; revision=27562
73 lines
1.8 KiB
C
73 lines
1.8 KiB
C
|
|
/* Generated data (by gimp-mkenums) */
|
|
|
|
#include "config.h"
|
|
#include <glib-object.h>
|
|
#include "libgimpbase/gimpbase.h"
|
|
#include "text-enums.h"
|
|
#include "gimp-intl.h"
|
|
|
|
/* enumerations from "./text-enums.h" */
|
|
GType
|
|
gimp_text_box_mode_get_type (void)
|
|
{
|
|
static const GEnumValue values[] =
|
|
{
|
|
{ GIMP_TEXT_BOX_DYNAMIC, "GIMP_TEXT_BOX_DYNAMIC", "dynamic" },
|
|
{ GIMP_TEXT_BOX_FIXED, "GIMP_TEXT_BOX_FIXED", "fixed" },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
{
|
|
{ GIMP_TEXT_BOX_DYNAMIC, "GIMP_TEXT_BOX_DYNAMIC", NULL },
|
|
{ GIMP_TEXT_BOX_FIXED, "GIMP_TEXT_BOX_FIXED", NULL },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
static GType type = 0;
|
|
|
|
if (G_UNLIKELY (! type))
|
|
{
|
|
type = g_enum_register_static ("GimpTextBoxMode", values);
|
|
gimp_type_set_translation_context (type, "text-box-mode");
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
}
|
|
|
|
return type;
|
|
}
|
|
|
|
GType
|
|
gimp_text_outline_get_type (void)
|
|
{
|
|
static const GEnumValue values[] =
|
|
{
|
|
{ GIMP_TEXT_OUTLINE_NONE, "GIMP_TEXT_OUTLINE_NONE", "none" },
|
|
{ GIMP_TEXT_OUTLINE_STROKE_ONLY, "GIMP_TEXT_OUTLINE_STROKE_ONLY", "stroke-only" },
|
|
{ GIMP_TEXT_OUTLINE_STROKE_FILL, "GIMP_TEXT_OUTLINE_STROKE_FILL", "stroke-fill" },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
{
|
|
{ GIMP_TEXT_OUTLINE_NONE, "GIMP_TEXT_OUTLINE_NONE", NULL },
|
|
{ GIMP_TEXT_OUTLINE_STROKE_ONLY, "GIMP_TEXT_OUTLINE_STROKE_ONLY", NULL },
|
|
{ GIMP_TEXT_OUTLINE_STROKE_FILL, "GIMP_TEXT_OUTLINE_STROKE_FILL", NULL },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
static GType type = 0;
|
|
|
|
if (G_UNLIKELY (! type))
|
|
{
|
|
type = g_enum_register_static ("GimpTextOutline", values);
|
|
gimp_type_set_translation_context (type, "text-outline");
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
}
|
|
|
|
return type;
|
|
}
|
|
|
|
|
|
/* Generated data ends here */
|
|
|