mirror of https://github.com/GNOME/gimp.git
make GimpCageOptions to use the new enum for Cage mode
This commit is contained in:
parent
2abbfc9114
commit
c686093b38
|
@ -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 ())
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue