app: Cleanup in preparation of merge

This commit is contained in:
Alexia Death 2010-11-04 20:25:32 +02:00
parent dfd5470a2e
commit d2563a69fd
9 changed files with 45 additions and 50 deletions

View file

@ -29,7 +29,7 @@
#include "core/core-types.h" #include "core/core-types.h"
#include "libgimpmath/gimpmathtypes.h" #include "libgimpmath/gimpmathtypes.h"
#include "libgimpbase/gimpbaseenums.h" #include "tools/tools-enums.h"
#include "libgimpmath/gimpvector.h" #include "libgimpmath/gimpvector.h"
#include <math.h> #include <math.h>

View file

@ -23,6 +23,7 @@
#include "core/gimpimagemapconfig.h" #include "core/gimpimagemapconfig.h"
#include <gegl.h> #include <gegl.h>
#include "gimp-gegl-types.h" #include "gimp-gegl-types.h"
#include "tools/tools-enums.h"
#define GIMP_TYPE_CAGE_CONFIG (gimp_cage_config_get_type ()) #define GIMP_TYPE_CAGE_CONFIG (gimp_cage_config_get_type ())
#define GIMP_CAGE_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_CAGE_CONFIG, GimpCageConfig)) #define GIMP_CAGE_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_CAGE_CONFIG, GimpCageConfig))

View file

@ -389,6 +389,35 @@ gimp_tool_action_get_type (void)
return type; 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 */ /* Generated data ends here */

View file

@ -220,5 +220,15 @@ typedef enum /*< skip >*/
TRANSFORM_HANDLE_CENTER TRANSFORM_HANDLE_CENTER
} TransformAction; } TransformAction;
#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;
#endif /* __TOOLS_ENUMS_H__ */ #endif /* __TOOLS_ENUMS_H__ */

View file

@ -8,7 +8,6 @@ static const GimpGetTypeFunc get_type_funcs[] =
gimp_brush_application_mode_get_type, gimp_brush_application_mode_get_type,
gimp_brush_generated_shape_get_type, gimp_brush_generated_shape_get_type,
gimp_bucket_fill_mode_get_type, gimp_bucket_fill_mode_get_type,
gimp_cage_mode_get_type,
gimp_channel_ops_get_type, gimp_channel_ops_get_type,
gimp_channel_type_get_type, gimp_channel_type_get_type,
gimp_clone_type_get_type, gimp_clone_type_get_type,
@ -65,7 +64,6 @@ static const gchar * const type_names[] =
"GimpBrushApplicationMode", "GimpBrushApplicationMode",
"GimpBrushGeneratedShape", "GimpBrushGeneratedShape",
"GimpBucketFillMode", "GimpBucketFillMode",
"GimpCageMode",
"GimpChannelOps", "GimpChannelOps",
"GimpChannelType", "GimpChannelType",
"GimpCloneType", "GimpCloneType",

View file

@ -114,36 +114,6 @@ gimp_bucket_fill_mode_get_type (void)
return type; 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_domain (type, GETTEXT_PACKAGE "-libgimp");
gimp_type_set_translation_context (type, "cage-mode");
gimp_enum_set_value_descriptions (type, descs);
}
return type;
}
GType GType
gimp_channel_ops_get_type (void) gimp_channel_ops_get_type (void)
{ {

View file

@ -74,16 +74,6 @@ typedef enum
GIMP_PATTERN_BUCKET_FILL /*< desc="Pattern fill" >*/ GIMP_PATTERN_BUCKET_FILL /*< desc="Pattern fill" >*/
} GimpBucketFillMode; } GimpBucketFillMode;
#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;
#define GIMP_TYPE_CHANNEL_OPS (gimp_channel_ops_get_type ()) #define GIMP_TYPE_CHANNEL_OPS (gimp_channel_ops_get_type ())

View file

@ -468,6 +468,8 @@ gimp_vector2_rotate_val (GimpVector2 vector,
* Compute a normalized perpendicular vector to @vector * Compute a normalized perpendicular vector to @vector
* *
* Returns: a #GimpVector2 perpendicular to @vector, with a length of 1.0. * Returns: a #GimpVector2 perpendicular to @vector, with a length of 1.0.
*
* Since: 2.8
**/ **/
GimpVector2 GimpVector2
gimp_vector2_normal (GimpVector2 *vector) gimp_vector2_normal (GimpVector2 *vector)
@ -490,6 +492,8 @@ gimp_vector2_normal (GimpVector2 *vector)
* is passed by value rather than by reference. * is passed by value rather than by reference.
* *
* Returns: a #GimpVector2 perpendicular to @vector, with a length of 1.0. * Returns: a #GimpVector2 perpendicular to @vector, with a length of 1.0.
*
* Since: 2.8
**/ **/
GimpVector2 GimpVector2
gimp_vector2_normal_val (GimpVector2 vector) gimp_vector2_normal_val (GimpVector2 vector)

View file

@ -53,13 +53,6 @@ package Gimp::CodeGen::enums;
GIMP_BG_BUCKET_FILL => '1', GIMP_BG_BUCKET_FILL => '1',
GIMP_PATTERN_BUCKET_FILL => '2' } GIMP_PATTERN_BUCKET_FILL => '2' }
}, },
GimpCageMode =>
{ contig => 1,
header => 'libgimpbase/gimpbaseenums.h',
symbols => [ qw(GIMP_CAGE_MODE_CAGE_CHANGE GIMP_CAGE_MODE_DEFORM) ],
mapping => { GIMP_CAGE_MODE_CAGE_CHANGE => '0',
GIMP_CAGE_MODE_DEFORM => '1' }
},
GimpChannelOps => GimpChannelOps =>
{ contig => 1, { contig => 1,
header => 'libgimpbase/gimpbaseenums.h', header => 'libgimpbase/gimpbaseenums.h',