mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 08:17:40 +00:00
e10ebe1805
2004-07-29 Sven Neumann <sven@gimp.org> * app/core/core-enums.h: removed enums GimpImageType and GimpImageBaseType ... * libgimpbase/gimpbaseenums.h: ... and added them here. Also moved all enums from gimpbasetypes.h to this new file. * libgimpbase/Makefile.am * tools/pdbgen/Makefile.am: changed accordingly. * app/core/core-enums.c * libgimp/gimpenums.h * libgimpbase/gimpbaseenums.c * tools/pdbgen/enums.pl: regenerated. * libgimpbase/gimpparasite.c * libgimpbase/gimpprotocol.c * libgimp/gimp.c: include <glib-object.h> * libgimpbase/gimpbasetypes.[ch]: added API to set and get a translation domain on a GType. This is used for translatable enum values. * libgimpbase/gimputils.[ch]: added API to retrieve the translated name for an enum value. * app/widgets/gimpenumstore.c * app/widgets/gimpenumwidgets.c: use the new API in libgimpbase.
60 lines
1.3 KiB
C
60 lines
1.3 KiB
C
|
|
/* Generated data (by gimp-mkenums) */
|
|
|
|
#include "config.h"
|
|
#include <glib-object.h>
|
|
#include "gimpbasetypes.h"
|
|
#include "libgimp/libgimp-intl.h"
|
|
|
|
/* enumerations from "./gimpbaseenums.h" */
|
|
GType
|
|
gimp_image_base_type_get_type (void)
|
|
{
|
|
static const GEnumValue values[] =
|
|
{
|
|
{ GIMP_RGB, N_("RGB color"), "rgb" },
|
|
{ GIMP_GRAY, N_("Grayscale"), "gray" },
|
|
{ GIMP_INDEXED, N_("Indexed color"), "indexed" },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
static GType type = 0;
|
|
|
|
if (! type)
|
|
{
|
|
type = g_enum_register_static ("GimpImageBaseType", values);
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
}
|
|
|
|
return type;
|
|
}
|
|
|
|
GType
|
|
gimp_image_type_get_type (void)
|
|
{
|
|
static const GEnumValue values[] =
|
|
{
|
|
{ GIMP_RGB_IMAGE, N_("RGB"), "rgb-image" },
|
|
{ GIMP_RGBA_IMAGE, N_("RGB-alpha"), "rgba-image" },
|
|
{ GIMP_GRAY_IMAGE, N_("Grayscale"), "gray-image" },
|
|
{ GIMP_GRAYA_IMAGE, N_("Grayscale-alpha"), "graya-image" },
|
|
{ GIMP_INDEXED_IMAGE, N_("Indexed"), "indexed-image" },
|
|
{ GIMP_INDEXEDA_IMAGE, N_("Indexed-alpha"), "indexeda-image" },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
static GType type = 0;
|
|
|
|
if (! type)
|
|
{
|
|
type = g_enum_register_static ("GimpImageType", values);
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
}
|
|
|
|
return type;
|
|
}
|
|
|
|
|
|
/* Generated data ends here */
|
|
|