GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

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, ...@@ -527,7 +527,7 @@ gimp_brush_set_shape (const gchar *name,
GimpBrushGeneratedShape shape_out = 0; GimpBrushGeneratedShape shape_out = 0;
args = gimp_value_array_new_from_types (G_TYPE_STRING, args = gimp_value_array_new_from_types (G_TYPE_STRING,
G_TYPE_ENUM, GIMP_TYPE_BRUSH_GENERATED_SHAPE,
G_TYPE_NONE); G_TYPE_NONE);
g_value_set_string (gimp_value_array_index (args, 0), name); g_value_set_string (gimp_value_array_index (args, 0), name);
g_value_set_enum (gimp_value_array_index (args, 1), shape_in); g_value_set_enum (gimp_value_array_index (args, 1), shape_in);
......
...@@ -66,7 +66,7 @@ gimp_brushes_popup (const gchar *brush_callback, ...@@ -66,7 +66,7 @@ gimp_brushes_popup (const gchar *brush_callback,
G_TYPE_STRING, G_TYPE_STRING,
G_TYPE_DOUBLE, G_TYPE_DOUBLE,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
G_TYPE_ENUM, GIMP_TYPE_LAYER_MODE,
G_TYPE_NONE); G_TYPE_NONE);
g_value_set_string (gimp_value_array_index (args, 0), brush_callback); g_value_set_string (gimp_value_array_index (args, 0), brush_callback);
g_value_set_string (gimp_value_array_index (args, 1), popup_title); g_value_set_string (gimp_value_array_index (args, 1), popup_title);
...@@ -147,7 +147,7 @@ gimp_brushes_set_popup (const gchar *brush_callback, ...@@ -147,7 +147,7 @@ gimp_brushes_set_popup (const gchar *brush_callback,
G_TYPE_STRING, G_TYPE_STRING,
G_TYPE_DOUBLE, G_TYPE_DOUBLE,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
G_TYPE_ENUM, GIMP_TYPE_LAYER_MODE,
G_TYPE_NONE); G_TYPE_NONE);
g_value_set_string (gimp_value_array_index (args, 0), brush_callback); g_value_set_string (gimp_value_array_index (args, 0), brush_callback);
g_value_set_string (gimp_value_array_index (args, 1), brush_name); g_value_set_string (gimp_value_array_index (args, 1), brush_name);
......
...@@ -121,7 +121,7 @@ gimp_channel_new_from_component (gint32 image_ID, ...@@ -121,7 +121,7 @@ gimp_channel_new_from_component (gint32 image_ID,
gint32 channel_ID = -1; gint32 channel_ID = -1;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM, GIMP_TYPE_CHANNEL_TYPE,
G_TYPE_STRING, G_TYPE_STRING,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID); gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
...@@ -203,7 +203,7 @@ gimp_channel_combine_masks (gint32 channel1_ID, ...@@ -203,7 +203,7 @@ gimp_channel_combine_masks (gint32 channel1_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_CHANNEL_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_CHANNEL_ID,
GIMP_TYPE_CHANNEL_ID, GIMP_TYPE_CHANNEL_ID,
G_TYPE_ENUM, GIMP_TYPE_CHANNEL_OPS,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
G_TYPE_NONE); G_TYPE_NONE);
......
...@@ -305,7 +305,7 @@ gimp_context_set_stroke_method (GimpStrokeMethod stroke_method) ...@@ -305,7 +305,7 @@ gimp_context_set_stroke_method (GimpStrokeMethod stroke_method)
GimpValueArray *return_vals; GimpValueArray *return_vals;
gboolean success = TRUE; 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_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), stroke_method); g_value_set_enum (gimp_value_array_index (args, 0), stroke_method);
...@@ -654,7 +654,7 @@ gimp_context_set_paint_mode (GimpLayerMode paint_mode) ...@@ -654,7 +654,7 @@ gimp_context_set_paint_mode (GimpLayerMode paint_mode)
GimpValueArray *return_vals; GimpValueArray *return_vals;
gboolean success = TRUE; 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_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), paint_mode); 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) ...@@ -866,7 +866,7 @@ gimp_context_set_line_cap_style (GimpCapStyle cap_style)
GimpValueArray *return_vals; GimpValueArray *return_vals;
gboolean success = TRUE; 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_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), cap_style); 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) ...@@ -937,7 +937,7 @@ gimp_context_set_line_join_style (GimpJoinStyle join_style)
GimpValueArray *return_vals; GimpValueArray *return_vals;
gboolean success = TRUE; 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_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), join_style); 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 ...@@ -2227,7 +2227,7 @@ gimp_context_set_gradient_blend_color_space (GimpGradientBlendColorSpace blend_c
GimpValueArray *return_vals; GimpValueArray *return_vals;
gboolean success = TRUE; 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_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), blend_color_space); 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) ...@@ -2293,7 +2293,7 @@ gimp_context_set_gradient_repeat_mode (GimpRepeatMode repeat_mode)
GimpValueArray *return_vals; GimpValueArray *return_vals;
gboolean success = TRUE; 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_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), repeat_mode); g_value_set_enum (gimp_value_array_index (args, 0), repeat_mode);
...@@ -2888,7 +2888,7 @@ gimp_context_set_sample_criterion (GimpSelectCriterion sample_criterion) ...@@ -2888,7 +2888,7 @@ gimp_context_set_sample_criterion (GimpSelectCriterion sample_criterion)
GimpValueArray *return_vals; GimpValueArray *return_vals;
gboolean success = TRUE; 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_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), sample_criterion); g_value_set_enum (gimp_value_array_index (args, 0), sample_criterion);
...@@ -3253,7 +3253,7 @@ gimp_context_set_distance_metric (GeglDistanceMetric metric) ...@@ -3253,7 +3253,7 @@ gimp_context_set_distance_metric (GeglDistanceMetric metric)
GimpValueArray *return_vals; GimpValueArray *return_vals;
gboolean success = TRUE; 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_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), metric); g_value_set_enum (gimp_value_array_index (args, 0), metric);
...@@ -3330,7 +3330,7 @@ gimp_context_set_interpolation (GimpInterpolationType interpolation) ...@@ -3330,7 +3330,7 @@ gimp_context_set_interpolation (GimpInterpolationType interpolation)
GimpValueArray *return_vals; GimpValueArray *return_vals;
gboolean success = TRUE; 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_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), interpolation); g_value_set_enum (gimp_value_array_index (args, 0), interpolation);
...@@ -3404,7 +3404,7 @@ gimp_context_set_transform_direction (GimpTransformDirection transform_direction ...@@ -3404,7 +3404,7 @@ gimp_context_set_transform_direction (GimpTransformDirection transform_direction
GimpValueArray *return_vals; GimpValueArray *return_vals;
gboolean success = TRUE; 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_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), transform_direction); g_value_set_enum (gimp_value_array_index (args, 0), transform_direction);
...@@ -3482,7 +3482,7 @@ gimp_context_set_transform_resize (GimpTransformResize transform_resize) ...@@ -3482,7 +3482,7 @@ gimp_context_set_transform_resize (GimpTransformResize transform_resize)
GimpValueArray *return_vals; GimpValueArray *return_vals;
gboolean success = TRUE; 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_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), transform_resize); g_value_set_enum (gimp_value_array_index (args, 0), transform_resize);
...@@ -3878,7 +3878,7 @@ gimp_context_set_ink_blob_type (GimpInkBlobType type) ...@@ -3878,7 +3878,7 @@ gimp_context_set_ink_blob_type (GimpInkBlobType type)
GimpValueArray *return_vals; GimpValueArray *return_vals;
gboolean success = TRUE; 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_TYPE_NONE);
g_value_set_enum (gimp_value_array_index (args, 0), type); g_value_set_enum (gimp_value_array_index (args, 0), type);
......
...@@ -833,7 +833,7 @@ gimp_drawable_fill (gint32 drawable_ID, ...@@ -833,7 +833,7 @@ gimp_drawable_fill (gint32 drawable_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM, GIMP_TYPE_FILL_TYPE,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_drawable_id (gimp_value_array_index (args, 0), drawable_ID); 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); g_value_set_enum (gimp_value_array_index (args, 1), fill_type);
...@@ -882,7 +882,7 @@ gimp_drawable_offset (gint32 drawable_ID, ...@@ -882,7 +882,7 @@ gimp_drawable_offset (gint32 drawable_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
G_TYPE_ENUM, GIMP_TYPE_OFFSET_TYPE,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
G_TYPE_NONE); G_TYPE_NONE);
...@@ -1082,7 +1082,7 @@ gimp_drawable_foreground_extract (gint32 drawable_ID, ...@@ -1082,7 +1082,7 @@ gimp_drawable_foreground_extract (gint32 drawable_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM, GIMP_TYPE_FOREGROUND_EXTRACT_MODE,
GIMP_TYPE_DRAWABLE_ID, GIMP_TYPE_DRAWABLE_ID,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_drawable_id (gimp_value_array_index (args, 0), drawable_ID); gimp_value_set_drawable_id (gimp_value_array_index (args, 0), drawable_ID);
......
...@@ -116,7 +116,7 @@ gimp_drawable_color_balance (gint32 drawable_ID, ...@@ -116,7 +116,7 @@ gimp_drawable_color_balance (gint32 drawable_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM, GIMP_TYPE_TRANSFER_MODE,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
G_TYPE_DOUBLE, G_TYPE_DOUBLE,
G_TYPE_DOUBLE, G_TYPE_DOUBLE,
...@@ -220,7 +220,7 @@ gimp_drawable_curves_explicit (gint32 drawable_ID, ...@@ -220,7 +220,7 @@ gimp_drawable_curves_explicit (gint32 drawable_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM, GIMP_TYPE_HISTOGRAM_CHANNEL,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
GIMP_TYPE_FLOAT_ARRAY, GIMP_TYPE_FLOAT_ARRAY,
G_TYPE_NONE); G_TYPE_NONE);
...@@ -271,7 +271,7 @@ gimp_drawable_curves_spline (gint32 drawable_ID, ...@@ -271,7 +271,7 @@ gimp_drawable_curves_spline (gint32 drawable_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM, GIMP_TYPE_HISTOGRAM_CHANNEL,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
GIMP_TYPE_FLOAT_ARRAY, GIMP_TYPE_FLOAT_ARRAY,
G_TYPE_NONE); G_TYPE_NONE);
...@@ -316,7 +316,7 @@ gimp_drawable_desaturate (gint32 drawable_ID, ...@@ -316,7 +316,7 @@ gimp_drawable_desaturate (gint32 drawable_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM, GIMP_TYPE_DESATURATE_MODE,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_drawable_id (gimp_value_array_index (args, 0), drawable_ID); 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); g_value_set_enum (gimp_value_array_index (args, 1), desaturate_mode);
...@@ -429,7 +429,7 @@ gimp_drawable_histogram (gint32 drawable_ID, ...@@ -429,7 +429,7 @@ gimp_drawable_histogram (gint32 drawable_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, 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_DOUBLE, G_TYPE_DOUBLE,
G_TYPE_NONE); G_TYPE_NONE);
...@@ -500,7 +500,7 @@ gimp_drawable_hue_saturation (gint32 drawable_ID, ...@@ -500,7 +500,7 @@ gimp_drawable_hue_saturation (gint32 drawable_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, 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, G_TYPE_DOUBLE,
G_TYPE_DOUBLE, G_TYPE_DOUBLE,
...@@ -612,7 +612,7 @@ gimp_drawable_levels (gint32 drawable_ID, ...@@ -612,7 +612,7 @@ gimp_drawable_levels (gint32 drawable_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, 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_DOUBLE, G_TYPE_DOUBLE,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
...@@ -746,7 +746,7 @@ gimp_drawable_threshold (gint32 drawable_ID, ...@@ -746,7 +746,7 @@ gimp_drawable_threshold (gint32 drawable_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, 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_DOUBLE, G_TYPE_DOUBLE,
G_TYPE_NONE); G_TYPE_NONE);
......
...@@ -101,7 +101,7 @@ gimp_drawable_edit_fill (gint32 drawable_ID, ...@@ -101,7 +101,7 @@ gimp_drawable_edit_fill (gint32 drawable_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM, GIMP_TYPE_FILL_TYPE,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_drawable_id (gimp_value_array_index (args, 0), drawable_ID); 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); g_value_set_enum (gimp_value_array_index (args, 1), fill_type);
...@@ -155,7 +155,7 @@ gimp_drawable_edit_bucket_fill (gint32 drawable_ID, ...@@ -155,7 +155,7 @@ gimp_drawable_edit_bucket_fill (gint32 drawable_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, 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_DOUBLE, G_TYPE_DOUBLE,
G_TYPE_NONE); G_TYPE_NONE);
...@@ -226,7 +226,7 @@ gimp_drawable_edit_gradient_fill (gint32 drawable_ID, ...@@ -226,7 +226,7 @@ gimp_drawable_edit_gradient_fill (gint32 drawable_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_DRAWABLE_ID,
G_TYPE_ENUM, GIMP_TYPE_GRADIENT_TYPE,
G_TYPE_DOUBLE, G_TYPE_DOUBLE,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
......
...@@ -61,7 +61,7 @@ gimp_file_load (GimpRunMode run_mode, ...@@ -61,7 +61,7 @@ gimp_file_load (GimpRunMode run_mode,
GimpValueArray *return_vals; GimpValueArray *return_vals;
gint32 image_ID = -1; 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_STRING, G_TYPE_STRING,
G_TYPE_NONE); G_TYPE_NONE);
...@@ -107,7 +107,7 @@ gimp_file_load_layer (GimpRunMode run_mode, ...@@ -107,7 +107,7 @@ gimp_file_load_layer (GimpRunMode run_mode,
GimpValueArray *return_vals; GimpValueArray *return_vals;
gint32 layer_ID = -1; 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, GIMP_TYPE_IMAGE_ID,
G_TYPE_STRING, G_TYPE_STRING,
G_TYPE_NONE); G_TYPE_NONE);
...@@ -155,7 +155,7 @@ gimp_file_load_layers (GimpRunMode run_mode, ...@@ -155,7 +155,7 @@ gimp_file_load_layers (GimpRunMode run_mode,
GimpValueArray *return_vals; GimpValueArray *return_vals;
gint *layer_ids = NULL; 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, GIMP_TYPE_IMAGE_ID,
G_TYPE_STRING, G_TYPE_STRING,
G_TYPE_NONE); G_TYPE_NONE);
...@@ -211,7 +211,7 @@ gimp_file_save (GimpRunMode run_mode, ...@@ -211,7 +211,7 @@ gimp_file_save (GimpRunMode run_mode,
GimpValueArray *return_vals; GimpValueArray *return_vals;
gboolean success = TRUE; 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_IMAGE_ID,
GIMP_TYPE_DRAWABLE_ID, GIMP_TYPE_DRAWABLE_ID,
G_TYPE_STRING, G_TYPE_STRING,
......
...@@ -986,7 +986,7 @@ gimp_gradient_segment_range_set_blending_function (const gchar *name ...@@ -986,7 +986,7 @@ gimp_gradient_segment_range_set_blending_function (const gchar *name
args = gimp_value_array_new_from_types (G_TYPE_STRING, args = gimp_value_array_new_from_types (G_TYPE_STRING,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
G_TYPE_ENUM, GIMP_TYPE_GRADIENT_SEGMENT_TYPE,
G_TYPE_NONE); G_TYPE_NONE);
g_value_set_string (gimp_value_array_index (args, 0), name); g_value_set_string (gimp_value_array_index (args, 0), name);
g_value_set_int (gimp_value_array_index (args, 1), start_segment); 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, ...@@ -1033,7 +1033,7 @@ gimp_gradient_segment_range_set_coloring_type (const gchar *name,
args = gimp_value_array_new_from_types (G_TYPE_STRING, args = gimp_value_array_new_from_types (G_TYPE_STRING,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
G_TYPE_ENUM, GIMP_TYPE_GRADIENT_SEGMENT_COLOR,
G_TYPE_NONE); G_TYPE_NONE);
g_value_set_string (gimp_value_array_index (args, 0), name); g_value_set_string (gimp_value_array_index (args, 0), name);
g_value_set_int (gimp_value_array_index (args, 1), start_segment); g_value_set_int (gimp_value_array_index (args, 1), start_segment);
......
...@@ -140,7 +140,7 @@ gimp_image_new (gint width, ...@@ -140,7 +140,7 @@ gimp_image_new (gint width,
args = gimp_value_array_new_from_types (GIMP_TYPE_INT32, args = gimp_value_array_new_from_types (GIMP_TYPE_INT32,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
gimp_image_base_type_get_type(), GIMP_TYPE_IMAGE_BASE_TYPE,
G_TYPE_NONE); G_TYPE_NONE);
g_value_set_int (gimp_value_array_index (args, 0), width); g_value_set_int (gimp_value_array_index (args, 0), width);
g_value_set_int (gimp_value_array_index (args, 1), height); g_value_set_int (gimp_value_array_index (args, 1), height);
...@@ -189,8 +189,8 @@ gimp_image_new_with_precision (gint width, ...@@ -189,8 +189,8 @@ gimp_image_new_with_precision (gint width,
args = gimp_value_array_new_from_types (GIMP_TYPE_INT32, args = gimp_value_array_new_from_types (GIMP_TYPE_INT32,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
gimp_image_base_type_get_type(), GIMP_TYPE_IMAGE_BASE_TYPE,
gimp_precision_get_type(), GIMP_TYPE_PRECISION,
G_TYPE_NONE); G_TYPE_NONE);
g_value_set_int (gimp_value_array_index (args, 0), width); g_value_set_int (gimp_value_array_index (args, 0), width);
g_value_set_int (gimp_value_array_index (args, 1), height); g_value_set_int (gimp_value_array_index (args, 1), height);
...@@ -1651,7 +1651,7 @@ gimp_image_merge_visible_layers (gint32 image_ID, ...@@ -1651,7 +1651,7 @@ gimp_image_merge_visible_layers (gint32 image_ID,
gint32 layer_ID = -1; gint32 layer_ID = -1;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
gimp_merge_type_get_type(), GIMP_TYPE_MERGE_TYPE,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID); 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); g_value_set_enum (gimp_value_array_index (args, 1), merge_type);
...@@ -1697,7 +1697,7 @@ gimp_image_merge_down (gint32 image_ID, ...@@ -1697,7 +1697,7 @@ gimp_image_merge_down (gint32 image_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
GIMP_TYPE_LAYER_ID, GIMP_TYPE_LAYER_ID,
gimp_merge_type_get_type(), GIMP_TYPE_MERGE_TYPE,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID); 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); 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, ...@@ -2287,7 +2287,7 @@ gimp_image_get_component_active (gint32 image_ID,
gboolean active = FALSE; gboolean active = FALSE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
gimp_channel_type_get_type(), GIMP_TYPE_CHANNEL_TYPE,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID); gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
g_value_set_enum (gimp_value_array_index (args, 1), component); g_value_set_enum (gimp_value_array_index (args, 1), component);
...@@ -2329,7 +2329,7 @@ gimp_image_set_component_active (gint32 image_ID, ...@@ -2329,7 +2329,7 @@ gimp_image_set_component_active (gint32 image_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID, 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_BOOLEAN,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID); 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, ...@@ -2371,7 +2371,7 @@ gimp_image_get_component_visible (gint32 image_ID,
gboolean visible = FALSE; gboolean visible = FALSE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
gimp_channel_type_get_type(), GIMP_TYPE_CHANNEL_TYPE,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID); gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
g_value_set_enum (gimp_value_array_index (args, 1), component); g_value_set_enum (gimp_value_array_index (args, 1), component);
...@@ -2413,7 +2413,7 @@ gimp_image_set_component_visible (gint32 image_ID, ...@@ -2413,7 +2413,7 @@ gimp_image_set_component_visible (gint32 image_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID, 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_BOOLEAN,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID); 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, ...@@ -247,7 +247,7 @@ _gimp_image_convert_color_profile (gint32 image_ID,
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
GIMP_TYPE_INT8_ARRAY, GIMP_TYPE_INT8_ARRAY,
G_TYPE_ENUM, GIMP_TYPE_COLOR_RENDERING_INTENT,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID); 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, ...@@ -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, args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_STRING, G_TYPE_STRING,
G_TYPE_ENUM, GIMP_TYPE_COLOR_RENDERING_INTENT,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID); gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
......
...@@ -144,8 +144,8 @@ gimp_image_convert_indexed (gint32 image_ID, ...@@ -144,8 +144,8 @@ gimp_image_convert_indexed (gint32 image_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM, GIMP_TYPE_CONVERT_DITHER_TYPE,
G_TYPE_ENUM, GIMP_TYPE_CONVERT_PALETTE_TYPE,
GIMP_TYPE_INT32, GIMP_TYPE_INT32,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
...@@ -241,7 +241,7 @@ gimp_image_convert_precision (gint32 image_ID, ...@@ -241,7 +241,7 @@ gimp_image_convert_precision (gint32 image_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM, GIMP_TYPE_PRECISION,
G_TYPE_NONE); G_TYPE_NONE);
gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID); gimp_value_set_image_id (gimp_value_array_index (args, 0), image_ID);
g_value_set_enum (gimp_value_array_index (args, 1), precision); g_value_set_enum (gimp_value_array_index (args, 1), precision);
......
...@@ -428,7 +428,7 @@ gimp_image_grid_set_style (gint32 image_ID, ...@@ -428,7 +428,7 @@ gimp_image_grid_set_style (gint32 image_ID,
gboolean success = TRUE; gboolean success = TRUE;
args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID, args = gimp_value_array_new_from_types (GIMP_TYPE_IMAGE_ID,
G_TYPE_ENUM, GIMP_TYPE_GRID_STYLE,
G_TYPE_NONE); G_TYPE_NONE);