make GimpCageOptions to use the new enum for Cage mode

This commit is contained in:
Michael Muré 2010-07-23 15:41:21 +02:00
parent 2abbfc9114
commit c686093b38
3 changed files with 1 additions and 40 deletions

View File

@ -21,7 +21,7 @@
#define __GIMP_CAGE_OPTIONS_H__
#include "tools/gimptransformoptions.h"
#include "tools/tools-enums.h"
#include "libgimpbase/gimpbase.h"
#define GIMP_TYPE_CAGE_OPTIONS (gimp_cage_options_get_type ())

View File

@ -358,35 +358,6 @@ gimp_vector_mode_get_type (void)
return type;
}
GType
gimp_cage_mode_get_type (void)
{
static const GEnumValue values[] =
{
{ GIMP_CAGE_MODE_CAGE_CHANGE, "GIMP_CAGE_MODE_CAGE_CHANGE", "cage-change" },
{ GIMP_CAGE_MODE_DEFORM, "GIMP_CAGE_MODE_DEFORM", "deform" },
{ 0, NULL, NULL }
};
static const GimpEnumDesc descs[] =
{
{ GIMP_CAGE_MODE_CAGE_CHANGE, NC_("cage-mode", "Create or adjust the cage"), NULL },
{ GIMP_CAGE_MODE_DEFORM, NC_("cage-mode", "Deform the cage to deform the image"), NULL },
{ 0, NULL, NULL }
};
static GType type = 0;
if (G_UNLIKELY (! type))
{
type = g_enum_register_static ("GimpCageMode", values);
gimp_type_set_translation_context (type, "cage-mode");
gimp_enum_set_value_descriptions (type, descs);
}
return type;
}
/* Generated data ends here */

View File

@ -158,16 +158,6 @@ typedef enum
} GimpVectorMode;
#define GIMP_TYPE_CAGE_MODE (gimp_cage_mode_get_type ())
GType gimp_cage_mode_get_type (void) G_GNUC_CONST;
typedef enum
{
GIMP_CAGE_MODE_CAGE_CHANGE, /*< desc="Create or adjust the cage" >*/
GIMP_CAGE_MODE_DEFORM /*< desc="Deform the cage to deform the image" >*/
} GimpCageMode;
/*
* non-registered enums; register them if needed
*/