Commit 80a6700c authored by William Skaggs's avatar William Skaggs
Browse files

Bill Skaggs <weskaggs@primate.ucdavis.edu>

	* app/tools/tools-enums.[ch]: oops, missed in previous
	commit.
parent c31defcb
2005-03-02 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/tools-enums.[ch]: oops, missed in previous
commit.
2005-03-02 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimprectangletool.c
......
......@@ -67,6 +67,34 @@ gimp_crop_mode_get_type (void)
return type;
}
GType
gimp_rectangle_mode_get_type (void)
{
static const GEnumValue values[] =
{
{ GIMP_RECTANGLE_MODE_EXECUTE, "GIMP_RECTANGLE_MODE_EXECUTE", "execute" },
{ GIMP_RECTANGLE_MODE_RESIZE, "GIMP_RECTANGLE_MODE_RESIZE", "resize" },
{ 0, NULL, NULL }
};
static const GimpEnumDesc descs[] =
{
{ GIMP_RECTANGLE_MODE_EXECUTE, N_("Execute"), NULL },
{ GIMP_RECTANGLE_MODE_RESIZE, N_("Resize"), NULL },
{ 0, NULL, NULL }
};
static GType type = 0;
if (! type)
{
type = g_enum_register_static ("GimpRectangleMode", values);
gimp_enum_set_value_descriptions (type, descs);
}
return type;
}
GType
gimp_rect_select_mode_get_type (void)
{
......
......@@ -46,6 +46,17 @@ typedef enum
} GimpCropMode;
#define GIMP_TYPE_RECTANGLE_MODE (gimp_rectangle_mode_get_type ())
GType gimp_rectangle_mode_get_type (void) G_GNUC_CONST;
typedef enum
{
GIMP_RECTANGLE_MODE_EXECUTE, /*< desc="Execute" >*/
GIMP_RECTANGLE_MODE_RESIZE /*< desc="Resize" >*/
} GimpRectangleMode;
#define GIMP_TYPE_RECT_SELECT_MODE (gimp_rect_select_mode_get_type ())
GType gimp_rect_select_mode_get_type (void) G_GNUC_CONST;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment