Commit c33b287d authored by Martin Nordholts's avatar Martin Nordholts

app: Register GimpToolAction for gimp_enum_get_value_name()

Register GimpToolAction so we can use gimp_enum_get_value_name() on
it.
parent 73d2f442
......@@ -358,6 +358,37 @@ gimp_vector_mode_get_type (void)
return type;
}
GType
gimp_tool_action_get_type (void)
{
static const GEnumValue values[] =
{
{ GIMP_TOOL_ACTION_PAUSE, "GIMP_TOOL_ACTION_PAUSE", "pause" },
{ GIMP_TOOL_ACTION_RESUME, "GIMP_TOOL_ACTION_RESUME", "resume" },
{ GIMP_TOOL_ACTION_HALT, "GIMP_TOOL_ACTION_HALT", "halt" },
{ 0, NULL, NULL }
};
static const GimpEnumDesc descs[] =
{
{ GIMP_TOOL_ACTION_PAUSE, "GIMP_TOOL_ACTION_PAUSE", NULL },
{ GIMP_TOOL_ACTION_RESUME, "GIMP_TOOL_ACTION_RESUME", NULL },
{ GIMP_TOOL_ACTION_HALT, "GIMP_TOOL_ACTION_HALT", NULL },
{ 0, NULL, NULL }
};
static GType type = 0;
if (G_UNLIKELY (! type))
{
type = g_enum_register_static ("GimpToolAction", values);
gimp_type_set_translation_context (type, "tool-action");
gimp_enum_set_value_descriptions (type, descs);
}
return type;
}
/* Generated data ends here */
......@@ -158,6 +158,18 @@ typedef enum
} GimpVectorMode;
#define GIMP_TYPE_TOOL_ACTION (gimp_tool_action_get_type ())
GType gimp_tool_action_get_type (void) G_GNUC_CONST;
typedef enum
{
GIMP_TOOL_ACTION_PAUSE,
GIMP_TOOL_ACTION_RESUME,
GIMP_TOOL_ACTION_HALT
} GimpToolAction;
/*
* non-registered enums; register them if needed
*/
......@@ -171,14 +183,6 @@ typedef enum /*< skip >*/
SELECTION_ANCHOR
} SelectFunction;
/* Tool control actions */
typedef enum /*< skip >*/
{
GIMP_TOOL_ACTION_PAUSE,
GIMP_TOOL_ACTION_RESUME,
GIMP_TOOL_ACTION_HALT
} GimpToolAction;
/* Modes of GimpEditSelectionTool */
typedef enum /*< skip >*/
{
......
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