Commit 271c656e authored by Michael Natterer's avatar Michael Natterer 😴

pdb, libgimp: fix enum type generation in the libgimp PDB wrappers

Use the actual enum type not just G_TYPE_ENUM.
parent a47789fc
Pipeline #100019 failed with stages
in 1 minute and 55 seconds
......@@ -527,7 +527,7 @@ gimp_brush_set_shape (const gchar *name,
GimpBrushGeneratedShape shape_out = 0;
args = gimp_value_array_new_from_types (G_TYPE_STRING,
G_TYPE_ENUM,
GIMP_TYPE_BRUSH_GENERATED_SHAPE,
G_TYPE_NONE);
g_value_set_string (gimp_value_array_index (args, 0), name);
g_value_set_enum (gimp_value_array_index (args, 1), shape_in);
......
......@@ -66,7 +66,7 @@ gimp_brushes_popup (const gchar *brush_callback,
G_TYPE_STRING,
G_TYPE_DOUBLE,
GIMP_TYPE_INT32,
G_TYPE_ENUM,
GIMP_TYPE_LAYER_MODE,
G_TYPE_NONE);
g_value_set_string (gimp_value_array_index (args, 0), brush_callback);
g_value_set_string (gimp_value_array_index (args, 1), popup_title);
......@@ -147,7 +147,7 @@ gimp_brushes_set_popup (const gchar *brush_callback,
G_TYPE_STRING,
G_TYPE_DOUBLE,
GIMP_TYPE_INT32,
G_TYPE_ENUM,
GIMP_TYPE_LAYER_MODE,
G_TYPE_NONE);
g_value_set_string (gimp_value_array_index (args, 0), brush_callback);
g_value_set_string (gimp_value_array_index (args, 1), brush_name);
......
......@@ -121,7 +121,7 @@ gimp_channel_new_from_component (gint32 image_ID,
gint32 channel_ID = -1;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM,
GIMP_TYPE_CHANNEL_TYPE,
G_TYPE_STRING,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
......@@ -203,7 +203,7 @@ gimp_channel_combine_masks (gint32 channel1_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_CHANNEL_ID,
GIMP_TYPE_CHANNEL_ID,
G_TYPE_ENUM,
GIMP_TYPE_CHANNEL_OPS,
GIMP_TYPE_INT32,
GIMP_TYPE_INT32,
G_TYPE_NONE);
......
......@@ -305,7 +305,7 @@ gimp_context_set_stroke_method (GimpStrokeMethod stroke_method)
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_STROKE_METHOD,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), stroke_method);
......@@ -654,7 +654,7 @@ gimp_context_set_paint_mode (GimpLayerMode paint_mode)
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_LAYER_MODE,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), paint_mode);
......@@ -866,7 +866,7 @@ gimp_context_set_line_cap_style (GimpCapStyle cap_style)
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_CAP_STYLE,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), cap_style);
......@@ -937,7 +937,7 @@ gimp_context_set_line_join_style (GimpJoinStyle join_style)
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_JOIN_STYLE,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), join_style);
......@@ -2227,7 +2227,7 @@ gimp_context_set_gradient_blend_color_space (GimpGradientBlendColorSpace blend_c
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_GRADIENT_BLEND_COLOR_SPACE,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), blend_color_space);
......@@ -2293,7 +2293,7 @@ gimp_context_set_gradient_repeat_mode (GimpRepeatMode repeat_mode)
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_REPEAT_MODE,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), repeat_mode);
......@@ -2888,7 +2888,7 @@ gimp_context_set_sample_criterion (GimpSelectCriterion sample_criterion)
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_SELECT_CRITERION,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), sample_criterion);
......@@ -3253,7 +3253,7 @@ gimp_context_set_distance_metric (GeglDistanceMetric metric)
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GEGL_TYPE_DISTANCE_METRIC,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), metric);
......@@ -3330,7 +3330,7 @@ gimp_context_set_interpolation (GimpInterpolationType interpolation)
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_INTERPOLATION_TYPE,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), interpolation);
......@@ -3404,7 +3404,7 @@ gimp_context_set_transform_direction (GimpTransformDirection transform_direction
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_TRANSFORM_DIRECTION,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), transform_direction);
......@@ -3482,7 +3482,7 @@ gimp_context_set_transform_resize (GimpTransformResize transform_resize)
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_TRANSFORM_RESIZE,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), transform_resize);
......@@ -3878,7 +3878,7 @@ gimp_context_set_ink_blob_type (GimpInkBlobType type)
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_INK_BLOB_TYPE,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), type);
......
......@@ -833,7 +833,7 @@ gimp_drawable_fill (gint32 drawable_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_FILL_TYPE,
G_TYPE_NONE);
gimp_value_set_drawable_id (gimp_value_array_index (args, 0), drawable_ID);
g_value_set_enum (gimp_value_array_index (args, 1), fill_type);
......@@ -882,7 +882,7 @@ gimp_drawable_offset (gint32 drawable_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_BOOLEAN,
G_TYPE_ENUM,
GIMP_TYPE_OFFSET_TYPE,
GIMP_TYPE_INT32,
GIMP_TYPE_INT32,
G_TYPE_NONE);
......@@ -1082,7 +1082,7 @@ gimp_drawable_foreground_extract (gint32 drawable_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_FOREGROUND_EXTRACT_MODE,
GIMP_TYPE_DRAWABLE_ID,
G_TYPE_NONE);
gimp_value_set_drawable_id (gimp_value_array_index (args, 0), drawable_ID);
......
......@@ -116,7 +116,7 @@ gimp_drawable_color_balance (gint32 drawable_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_TRANSFER_MODE,
G_TYPE_BOOLEAN,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
......@@ -220,7 +220,7 @@ gimp_drawable_curves_explicit (gint32 drawable_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_HISTOGRAM_CHANNEL,
GIMP_TYPE_INT32,
GIMP_TYPE_FLOAT_ARRAY,
G_TYPE_NONE);
......@@ -271,7 +271,7 @@ gimp_drawable_curves_spline (gint32 drawable_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_HISTOGRAM_CHANNEL,
GIMP_TYPE_INT32,
GIMP_TYPE_FLOAT_ARRAY,
G_TYPE_NONE);
......@@ -316,7 +316,7 @@ gimp_drawable_desaturate (gint32 drawable_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_DESATURATE_MODE,
G_TYPE_NONE);
gimp_value_set_drawable_id (gimp_value_array_index (args, 0), drawable_ID);
g_value_set_enum (gimp_value_array_index (args, 1), desaturate_mode);
......@@ -429,7 +429,7 @@ gimp_drawable_histogram (gint32 drawable_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_HISTOGRAM_CHANNEL,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
G_TYPE_NONE);
......@@ -500,7 +500,7 @@ gimp_drawable_hue_saturation (gint32 drawable_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_HUE_RANGE,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
......@@ -612,7 +612,7 @@ gimp_drawable_levels (gint32 drawable_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_HISTOGRAM_CHANNEL,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
G_TYPE_BOOLEAN,
......@@ -746,7 +746,7 @@ gimp_drawable_threshold (gint32 drawable_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_HISTOGRAM_CHANNEL,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
G_TYPE_NONE);
......
......@@ -101,7 +101,7 @@ gimp_drawable_edit_fill (gint32 drawable_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_FILL_TYPE,
G_TYPE_NONE);
gimp_value_set_drawable_id (gimp_value_array_index (args, 0), drawable_ID);
g_value_set_enum (gimp_value_array_index (args, 1), fill_type);
......@@ -155,7 +155,7 @@ gimp_drawable_edit_bucket_fill (gint32 drawable_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_FILL_TYPE,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
G_TYPE_NONE);
......@@ -226,7 +226,7 @@ gimp_drawable_edit_gradient_fill (gint32 drawable_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_GRADIENT_TYPE,
G_TYPE_DOUBLE,
G_TYPE_BOOLEAN,
GIMP_TYPE_INT32,
......
......@@ -61,7 +61,7 @@ gimp_file_load (GimpRunMode run_mode,
GimpValueArray *return_vals;
gint32 image_ID = -1;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_RUN_MODE,
G_TYPE_STRING,
G_TYPE_STRING,
G_TYPE_NONE);
......@@ -107,7 +107,7 @@ gimp_file_load_layer (GimpRunMode run_mode,
GimpValueArray *return_vals;
gint32 layer_ID = -1;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_RUN_MODE,
GIMP_TYPE_IMAGE_ID,
G_TYPE_STRING,
G_TYPE_NONE);
......@@ -155,7 +155,7 @@ gimp_file_load_layers (GimpRunMode run_mode,
GimpValueArray *return_vals;
gint *layer_ids = NULL;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_RUN_MODE,
GIMP_TYPE_IMAGE_ID,
G_TYPE_STRING,
G_TYPE_NONE);
......@@ -211,7 +211,7 @@ gimp_file_save (GimpRunMode run_mode,
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_RUN_MODE,
GIMP_TYPE_IMAGE_ID,
GIMP_TYPE_DRAWABLE_ID,
G_TYPE_STRING,
......
......@@ -986,7 +986,7 @@ gimp_gradient_segment_range_set_blending_function (const gchar *name
args = gimp_value_array_new_from_types (G_TYPE_STRING,
GIMP_TYPE_INT32,
GIMP_TYPE_INT32,
G_TYPE_ENUM,
GIMP_TYPE_GRADIENT_SEGMENT_TYPE,
G_TYPE_NONE);
g_value_set_string (gimp_value_array_index (args, 0), name);
g_value_set_int (gimp_value_array_index (args, 1), start_segment);
......@@ -1033,7 +1033,7 @@ gimp_gradient_segment_range_set_coloring_type (const gchar *name,
args = gimp_value_array_new_from_types (G_TYPE_STRING,
GIMP_TYPE_INT32,
GIMP_TYPE_INT32,
G_TYPE_ENUM,
GIMP_TYPE_GRADIENT_SEGMENT_COLOR,
G_TYPE_NONE);
g_value_set_string (gimp_value_array_index (args, 0), name);
g_value_set_int (gimp_value_array_index (args, 1), start_segment);
......
......@@ -140,7 +140,7 @@ gimp_image_new (gint width,
args = gimp_value_array_new_from_types (GIMP_TYPE_INT32,
GIMP_TYPE_INT32,
gimp_image_base_type_get_type(),
GIMP_TYPE_IMAGE_BASE_TYPE,
G_TYPE_NONE);
g_value_set_int (gimp_value_array_index (args, 0), width);
g_value_set_int (gimp_value_array_index (args, 1), height);
......@@ -189,8 +189,8 @@ gimp_image_new_with_precision (gint width,
args = gimp_value_array_new_from_types (GIMP_TYPE_INT32,
GIMP_TYPE_INT32,
gimp_image_base_type_get_type(),
gimp_precision_get_type(),
GIMP_TYPE_IMAGE_BASE_TYPE,
GIMP_TYPE_PRECISION,
G_TYPE_NONE);
g_value_set_int (gimp_value_array_index (args, 0), width);
g_value_set_int (gimp_value_array_index (args, 1), height);
......@@ -1651,7 +1651,7 @@ gimp_image_merge_visible_layers (gint32 image_ID,
gint32 layer_ID = -1;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
gimp_merge_type_get_type(),
GIMP_TYPE_MERGE_TYPE,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
g_value_set_enum (gimp_value_array_index (args, 1), merge_type);
......@@ -1697,7 +1697,7 @@ gimp_image_merge_down (gint32 image_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
GIMP_TYPE_LAYER_ID,
gimp_merge_type_get_type(),
GIMP_TYPE_MERGE_TYPE,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
gimp_value_set_layer_id (gimp_value_array_index (args, 1), merge_layer_ID);
......@@ -2287,7 +2287,7 @@ gimp_image_get_component_active (gint32 image_ID,
gboolean active = FALSE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
gimp_channel_type_get_type(),
GIMP_TYPE_CHANNEL_TYPE,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
g_value_set_enum (gimp_value_array_index (args, 1), component);
......@@ -2329,7 +2329,7 @@ gimp_image_set_component_active (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
gimp_channel_type_get_type(),
GIMP_TYPE_CHANNEL_TYPE,
G_TYPE_BOOLEAN,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
......@@ -2371,7 +2371,7 @@ gimp_image_get_component_visible (gint32 image_ID,
gboolean visible = FALSE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
gimp_channel_type_get_type(),
GIMP_TYPE_CHANNEL_TYPE,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
g_value_set_enum (gimp_value_array_index (args, 1), component);
......@@ -2413,7 +2413,7 @@ gimp_image_set_component_visible (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
gimp_channel_type_get_type(),
GIMP_TYPE_CHANNEL_TYPE,
G_TYPE_BOOLEAN,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
......
......@@ -247,7 +247,7 @@ _gimp_image_convert_color_profile (gint32 image_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
GIMP_TYPE_INT32,
GIMP_TYPE_INT8_ARRAY,
G_TYPE_ENUM,
GIMP_TYPE_COLOR_RENDERING_INTENT,
G_TYPE_BOOLEAN,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
......@@ -297,7 +297,7 @@ gimp_image_convert_color_profile_from_file (gint32 image_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_STRING,
G_TYPE_ENUM,
GIMP_TYPE_COLOR_RENDERING_INTENT,
G_TYPE_BOOLEAN,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
......
......@@ -144,8 +144,8 @@ gimp_image_convert_indexed (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM,
G_TYPE_ENUM,
GIMP_TYPE_CONVERT_DITHER_TYPE,
GIMP_TYPE_CONVERT_PALETTE_TYPE,
GIMP_TYPE_INT32,
G_TYPE_BOOLEAN,
G_TYPE_BOOLEAN,
......@@ -241,7 +241,7 @@ gimp_image_convert_precision (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM,
GIMP_TYPE_PRECISION,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
g_value_set_enum (gimp_value_array_index (args, 1), precision);
......
......@@ -428,7 +428,7 @@ gimp_image_grid_set_style (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM,
GIMP_TYPE_GRID_STYLE,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
g_value_set_enum (gimp_value_array_index (args, 1), style);
......
......@@ -76,7 +76,7 @@ gimp_image_select_color (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM,
GIMP_TYPE_CHANNEL_OPS,
GIMP_TYPE_DRAWABLE_ID,
GIMP_TYPE_RGB,
G_TYPE_NONE);
......@@ -149,7 +149,7 @@ gimp_image_select_contiguous_color (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM,
GIMP_TYPE_CHANNEL_OPS,
GIMP_TYPE_DRAWABLE_ID,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
......@@ -206,7 +206,7 @@ gimp_image_select_rectangle (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM,
GIMP_TYPE_CHANNEL_OPS,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
......@@ -272,7 +272,7 @@ gimp_image_select_round_rectangle (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM,
GIMP_TYPE_CHANNEL_OPS,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
......@@ -336,7 +336,7 @@ gimp_image_select_ellipse (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM,
GIMP_TYPE_CHANNEL_OPS,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
......@@ -397,7 +397,7 @@ gimp_image_select_polygon (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM,
GIMP_TYPE_CHANNEL_OPS,
GIMP_TYPE_INT32,
GIMP_TYPE_FLOAT_ARRAY,
G_TYPE_NONE);
......@@ -448,7 +448,7 @@ gimp_image_select_item (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM,
GIMP_TYPE_CHANNEL_OPS,
GIMP_TYPE_ITEM_ID,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
......
......@@ -242,7 +242,7 @@ gimp_image_flip (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM,
GIMP_TYPE_ORIENTATION_TYPE,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
g_value_set_enum (gimp_value_array_index (args, 1), flip_type);
......@@ -278,7 +278,7 @@ gimp_image_rotate (gint32 image_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM,
GIMP_TYPE_ROTATION_TYPE,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
g_value_set_enum (gimp_value_array_index (args, 1), rotate_type);
......
......@@ -997,7 +997,7 @@ gimp_item_set_color_tag (gint32 item_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_ITEM_ID,
G_TYPE_ENUM,
GIMP_TYPE_COLOR_TAG,
G_TYPE_NONE);
gimp_value_set_item_id (gimp_value_array_index (args, 0), item_ID);
g_value_set_enum (gimp_value_array_index (args, 1), color_tag);
......
......@@ -129,7 +129,7 @@ gimp_item_transform_flip_simple (gint32 item_ID,
gint32 ret_item_ID = -1;
args = gimp_value_array_new_from_types (GIMP_TYPE_ITEM_ID,
G_TYPE_ENUM,
GIMP_TYPE_ORIENTATION_TYPE,
G_TYPE_BOOLEAN,
G_TYPE_DOUBLE,
G_TYPE_NONE);
......@@ -362,7 +362,7 @@ gimp_item_transform_rotate_simple (gint32 item_ID,
gint32 ret_item_ID = -1;
args = gimp_value_array_new_from_types (GIMP_TYPE_ITEM_ID,
G_TYPE_ENUM,
GIMP_TYPE_ROTATION_TYPE,
G_TYPE_BOOLEAN,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
......@@ -576,7 +576,7 @@ gimp_item_transform_shear (gint32 item_ID,
gint32 ret_item_ID = -1;
args = gimp_value_array_new_from_types (GIMP_TYPE_ITEM_ID,
G_TYPE_ENUM,
GIMP_TYPE_ORIENTATION_TYPE,
G_TYPE_DOUBLE,
G_TYPE_NONE);
gimp_value_set_item_id (gimp_value_array_index (args, 0), item_ID);
......
......@@ -71,10 +71,10 @@ _gimp_layer_new (gint32 image_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
GIMP_TYPE_INT32,
GIMP_TYPE_INT32,
G_TYPE_ENUM,
GIMP_TYPE_IMAGE_TYPE,
G_TYPE_STRING,
G_TYPE_DOUBLE,
G_TYPE_ENUM,
GIMP_TYPE_LAYER_MODE,
G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
g_value_set_int (gimp_value_array_index (args, 1), width);
......@@ -554,7 +554,7 @@ gimp_layer_create_mask (gint32 layer_ID,
gint32 mask_ID = -1;
args = gimp_value_array_new_from_types (GIMP_TYPE_LAYER_ID,
G_TYPE_ENUM,
GIMP_TYPE_ADD_MASK_TYPE,
G_TYPE_NONE);
gimp_value_set_layer_id (gimp_value_array_index (args, 0), layer_ID);
g_value_set_enum (gimp_value_array_index (args, 1), mask_type);
......@@ -704,7 +704,7 @@ gimp_layer_remove_mask (gint32 layer_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_LAYER_ID,
G_TYPE_ENUM,
GIMP_TYPE_MASK_APPLY_MODE,
G_TYPE_NONE);
gimp_value_set_layer_id (gimp_value_array_index (args, 0), layer_ID);
g_value_set_enum (gimp_value_array_index (args, 1), mode);
......@@ -1171,7 +1171,7 @@ gimp_layer_set_mode (gint32 layer_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_LAYER_ID,
G_TYPE_ENUM,
GIMP_TYPE_LAYER_MODE,
G_TYPE_NONE);
gimp_value_set_layer_id (gimp_value_array_index (args, 0), layer_ID);
g_value_set_enum (gimp_value_array_index (args, 1), mode);
......@@ -1244,7 +1244,7 @@ gimp_layer_set_blend_space (gint32 layer_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_LAYER_ID,
G_TYPE_ENUM,
GIMP_TYPE_LAYER_COLOR_SPACE,
G_TYPE_NONE);
gimp_value_set_layer_id (gimp_value_array_index (args, 0), layer_ID);
g_value_set_enum (gimp_value_array_index (args, 1), blend_space);
......@@ -1317,7 +1317,7 @@ gimp_layer_set_composite_space (gint32 layer_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_LAYER_ID,
G_TYPE_ENUM,
GIMP_TYPE_LAYER_COLOR_SPACE,
G_TYPE_NONE);
gimp_value_set_layer_id (gimp_value_array_index (args, 0), layer_ID);
g_value_set_enum (gimp_value_array_index (args, 1), composite_space);
......@@ -1390,7 +1390,7 @@ gimp_layer_set_composite_mode (gint32 layer_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_LAYER_ID,
G_TYPE_ENUM,
GIMP_TYPE_LAYER_COMPOSITE_MODE,
G_TYPE_NONE);
gimp_value_set_layer_id (gimp_value_array_index (args, 0), layer_ID);
g_value_set_enum (gimp_value_array_index (args, 1), composite_mode);
......
......@@ -118,7 +118,7 @@ gimp_message_set_handler (GimpMessageHandlerType handler)
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_MESSAGE_HANDLER_TYPE,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), handler);
......
......@@ -168,7 +168,7 @@ gimp_clone (gint32 drawable_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM,
GIMP_TYPE_CLONE_TYPE,
G_TYPE_DOUBLE,
G_TYPE_DOUBLE,
GIMP_TYPE_INT32,
......@@ -268,7 +268,7 @@ gimp_convolve (gint32 drawable_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_DOUBLE,
G_TYPE_ENUM,
GIMP_TYPE_CONVOLVE_TYPE,
GIMP_TYPE_INT32,
GIMP_TYPE_FLOAT_ARRAY,
G_TYPE_NONE);
......@@ -362,8 +362,8 @@ gimp_dodgeburn (gint32 drawable_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_DOUBLE,
G_TYPE_ENUM,
G_TYPE_ENUM,
GIMP_TYPE_DODGE_BURN_TYPE,
GIMP_TYPE_TRANSFER_MODE,
GIMP_TYPE_INT32,
GIMP_TYPE_FLOAT_ARRAY,
G_TYPE_NONE);
......@@ -460,8 +460,8 @@ gimp_eraser (gint32 drawable_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
GIMP_TYPE_INT32,
GIMP_TYPE_FLOAT_ARRAY,
G_TYPE_ENUM,
G_TYPE_ENUM,
GIMP_TYPE_BRUSH_APPLICATION_MODE,
GIMP_TYPE_PAINT_APPLICATION_MODE,
G_TYPE_NONE);
gimp_value_set_drawable_id (gimp_value_array_index (args, 0), drawable_ID);
g_value_set_int (gimp_value_array_index (args, 1), num_strokes);
......@@ -670,7 +670,7 @@ gimp_paintbrush (gint32 drawable_ID,
G_TYPE_DOUBLE,
GIMP_TYPE_INT32,
GIMP_TYPE_FLOAT_ARRAY,
G_TYPE_ENUM,
GIMP_TYPE_PAINT_APPLICATION_MODE,
G_TYPE_DOUBLE,
G_TYPE_NONE);
gimp_value_set_drawable_id (gimp_value_array_index (args, 0), drawable_ID);
......
......@@ -224,7 +224,7 @@ _gimp_plugin_icon_register (const gchar *procedure_name,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_STRING,
G_TYPE_ENUM,
GIMP_TYPE_ICON_TYPE,
GIMP_TYPE_INT32,
GIMP_TYPE_INT8_ARRAY,
G_TYPE_NONE);
......@@ -270,7 +270,7 @@ gimp_plugin_set_pdb_error_handler (GimpPDBErrorHandler handler)
GimpValueArray *return_vals;
gboolean success = TRUE;
args = gimp_value_array_new_from_types (G_TYPE_ENUM,
args = gimp_value_array_new_from_types (GIMP_TYPE_PDB_ERROR_HANDLER,
G_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), handler);
......
......@@ -498,7 +498,7 @@ gimp_text_layer_set_hint_style (gint32 layer_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_LAYER_ID,
G_TYPE_ENUM,
GIMP_TYPE_TEXT_HINT_STYLE,
G_TYPE_NONE);
gimp_value_set_layer_id (gimp_value_array_index (args, 0), layer_ID);
g_value_set_enum (gimp_value_array_index (args, 1), style);
......@@ -722,7 +722,7 @@ gimp_text_layer_set_base_direction (gint32 layer_ID,
gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_LAYER_ID,
G_TYPE_ENUM,
GIMP_TYPE_TEXT_DIRECTION,
G_TYPE_NONE);
gimp_value_set_layer_id (gimp_value_array_index (args, 0), layer_ID);
g_value_set_enum (gimp_value_array_index (args, 1), direction);
......@@ -797,7 +797,7 @@ gimp_text_layer_set_justification (gint32 layer_ID,
gboolean success = TRUE;
args