Commit 5a095232 authored by Michael Natterer's avatar Michael Natterer 😴

Remove GIMP_TYPE_INT32 and GimpParamSpecInt32

Use gint and GParamSpecInt instead.
parent 1bf90ec7
Pipeline #104834 passed with stages
in 21 minutes and 56 seconds
......@@ -46,7 +46,7 @@ gimp_param_spec_boolean_desc (GParamSpec *pspec)
}
static gchar *
gimp_param_spec_int32_desc (GParamSpec *pspec)
gimp_param_spec_int_desc (GParamSpec *pspec)
{
GParamSpecInt *ispec = G_PARAM_SPEC_INT (pspec);
const gchar *blurb = gimp_param_spec_get_blurb (pspec);
......@@ -170,9 +170,9 @@ gimp_param_spec_get_desc (GParamSpec *pspec)
if (GIMP_IS_PARAM_SPEC_UNIT (pspec))
{
}
else if (GIMP_IS_PARAM_SPEC_INT32 (pspec))
else if (G_IS_PARAM_SPEC_INT (pspec))
{
return gimp_param_spec_int32_desc (pspec);
return gimp_param_spec_int_desc (pspec);
}
else
{
......
......@@ -184,11 +184,11 @@ file_data_init (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("spacing",
"spacing",
"Spacing of the brush",
1, 1000, 10,
GIMP_PARAM_READWRITE));
g_param_spec_int ("spacing",
"spacing",
"Spacing of the brush",
1, 1000, 10,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("name",
"name",
......@@ -334,11 +334,11 @@ file_data_init (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("spacing",
"spacing",
"Spacing of the brush",
1, 1000, 10,
GIMP_PARAM_READWRITE));
g_param_spec_int ("spacing",
"spacing",
"Spacing of the brush",
1, 1000, 10,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("name",
"name",
......
......@@ -269,10 +269,10 @@ brush_get_info_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
const gchar *name;
gint32 width = 0;
gint32 height = 0;
gint32 mask_bpp = 0;
gint32 color_bpp = 0;
gint width = 0;
gint height = 0;
gint mask_bpp = 0;
gint color_bpp = 0;
name = g_value_get_string (gimp_value_array_index (args, 0));
......@@ -330,13 +330,13 @@ brush_get_pixels_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
const gchar *name;
gint32 width = 0;
gint32 height = 0;
gint32 mask_bpp = 0;
gint32 num_mask_bytes = 0;
gint width = 0;
gint height = 0;
gint mask_bpp = 0;
gint num_mask_bytes = 0;
guint8 *mask_bytes = NULL;
gint32 color_bpp = 0;
gint32 num_color_bytes = 0;
gint color_bpp = 0;
gint num_color_bytes = 0;
guint8 *color_bytes = NULL;
name = g_value_get_string (gimp_value_array_index (args, 0));
......@@ -413,7 +413,7 @@ brush_get_spacing_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
const gchar *name;
gint32 spacing = 0;
gint spacing = 0;
name = g_value_get_string (gimp_value_array_index (args, 0));
......@@ -446,7 +446,7 @@ brush_set_spacing_invoker (GimpProcedure *procedure,
{
gboolean success = TRUE;
const gchar *name;
gint32 spacing;
gint spacing;
name = g_value_get_string (gimp_value_array_index (args, 0));
spacing = g_value_get_int (gimp_value_array_index (args, 1));
......@@ -476,7 +476,7 @@ brush_get_shape_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
const gchar *name;
gint32 shape = 0;
gint shape = 0;
name = g_value_get_string (gimp_value_array_index (args, 0));
......@@ -510,8 +510,8 @@ brush_set_shape_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
const gchar *name;
gint32 shape_in;
gint32 shape_out = 0;
gint shape_in;
gint shape_out = 0;
name = g_value_get_string (gimp_value_array_index (args, 0));
shape_in = g_value_get_enum (gimp_value_array_index (args, 1));
......@@ -624,7 +624,7 @@ brush_get_spikes_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
const gchar *name;
gint32 spikes = 0;
gint spikes = 0;
name = g_value_get_string (gimp_value_array_index (args, 0));
......@@ -658,8 +658,8 @@ brush_set_spikes_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
const gchar *name;
gint32 spikes_in;
gint32 spikes_out = 0;
gint spikes_in;
gint spikes_out = 0;
name = g_value_get_string (gimp_value_array_index (args, 0));
spikes_in = g_value_get_int (gimp_value_array_index (args, 1));
......@@ -1120,29 +1120,29 @@ register_brush_procs (GimpPDB *pdb)
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("width",
"width",
"The brush width",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("width",
"width",
"The brush width",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("height",
"height",
"The brush height",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("height",
"height",
"The brush height",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("mask-bpp",
"mask bpp",
"The brush mask bpp",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("mask-bpp",
"mask bpp",
"The brush mask bpp",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("color-bpp",
"color bpp",
"The brush color bpp",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("color-bpp",
"color bpp",
"The brush color bpp",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
......@@ -1168,46 +1168,46 @@ register_brush_procs (GimpPDB *pdb)
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("width",
"width",
"The brush width",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("width",
"width",
"The brush width",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("height",
"height",
"The brush height",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("height",
"height",
"The brush height",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("mask-bpp",
"mask bpp",
"The brush mask bpp",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("mask-bpp",
"mask bpp",
"The brush mask bpp",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("num-mask-bytes",
"num mask bytes",
"Length of brush mask data",
0, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("num-mask-bytes",
"num mask bytes",
"Length of brush mask data",
0, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int8_array ("mask-bytes",
"mask bytes",
"The brush mask data",
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("color-bpp",
"color bpp",
"The brush color bpp",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("color-bpp",
"color bpp",
"The brush color bpp",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("num-color-bytes",
"num color bytes",
"Length of brush color data",
0, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("num-color-bytes",
"num color bytes",
"Length of brush color data",
0, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int8_array ("color-bytes",
"color bytes",
......@@ -1238,11 +1238,11 @@ register_brush_procs (GimpPDB *pdb)
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("spacing",
"spacing",
"The brush spacing",
0, 1000, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("spacing",
"spacing",
"The brush spacing",
0, 1000, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
......@@ -1268,11 +1268,11 @@ register_brush_procs (GimpPDB *pdb)
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("spacing",
"spacing",
"The brush spacing",
0, 1000, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("spacing",
"spacing",
"The brush spacing",
0, 1000, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
......@@ -1433,11 +1433,11 @@ register_brush_procs (GimpPDB *pdb)
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("spikes",
"spikes",
"The number of spikes on the brush.",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("spikes",
"spikes",
"The number of spikes on the brush.",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
......@@ -1463,17 +1463,17 @@ register_brush_procs (GimpPDB *pdb)
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("spikes-in",
"spikes in",
"The desired number of spikes",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("spikes-in",
"spikes in",
"The desired number of spikes",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("spikes-out",
"spikes out",
"The number of spikes actually assigned",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("spikes-out",
"spikes out",
"The number of spikes actually assigned",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
......
......@@ -49,8 +49,8 @@ brushes_popup_invoker (GimpProcedure *procedure,
const gchar *popup_title;
const gchar *initial_brush;
gdouble opacity;
gint32 spacing;
gint32 paint_mode;
gint spacing;
gint paint_mode;
brush_callback = g_value_get_string (gimp_value_array_index (args, 0));
popup_title = g_value_get_string (gimp_value_array_index (args, 1));
......@@ -118,8 +118,8 @@ brushes_set_popup_invoker (GimpProcedure *procedure,
const gchar *brush_callback;
const gchar *brush_name;
gdouble opacity;
gint32 spacing;
gint32 paint_mode;
gint spacing;
gint paint_mode;
brush_callback = g_value_get_string (gimp_value_array_index (args, 0));
brush_name = g_value_get_string (gimp_value_array_index (args, 1));
......@@ -194,11 +194,11 @@ register_brush_select_procs (GimpPDB *pdb)
0, 100, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("spacing",
"spacing",
"The initial spacing of the brush (if < 0 then use brush default spacing)",
G_MININT32, 1000, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("spacing",
"spacing",
"The initial spacing of the brush (if < 0 then use brush default spacing)",
G_MININT32, 1000, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
g_param_spec_enum ("paint-mode",
"paint mode",
......@@ -268,11 +268,11 @@ register_brush_select_procs (GimpPDB *pdb)
0, 100, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("spacing",
"spacing",
"The initial spacing of the brush (if < 0 then use brush default spacing)",
G_MININT32, 1000, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("spacing",
"spacing",
"The initial spacing of the brush (if < 0 then use brush default spacing)",
G_MININT32, 1000, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
g_param_spec_enum ("paint-mode",
"paint mode",
......
......@@ -67,7 +67,7 @@ brushes_get_list_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
const gchar *filter;
gint32 num_brushes = 0;
gint num_brushes = 0;
gchar **brush_list = NULL;
filter = g_value_get_string (gimp_value_array_index (args, 0));
......@@ -134,11 +134,11 @@ register_brushes_procs (GimpPDB *pdb)
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("num-brushes",
"num brushes",
"The number of brushes in the brush list",
0, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("num-brushes",
"num brushes",
"The number of brushes in the brush list",
0, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_string_array ("brush-list",
"brush list",
......
......@@ -53,7 +53,7 @@ buffers_get_list_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
const gchar *filter;
gint32 num_buffers = 0;
gint num_buffers = 0;
gchar **buffer_list = NULL;
filter = g_value_get_string (gimp_value_array_index (args, 0));
......@@ -153,7 +153,7 @@ buffer_get_width_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
const gchar *buffer_name;
gint32 width = 0;
gint width = 0;
buffer_name = g_value_get_string (gimp_value_array_index (args, 0));
......@@ -187,7 +187,7 @@ buffer_get_height_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
const gchar *buffer_name;
gint32 height = 0;
gint height = 0;
buffer_name = g_value_get_string (gimp_value_array_index (args, 0));
......@@ -221,7 +221,7 @@ buffer_get_bytes_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
const gchar *buffer_name;
gint32 bytes = 0;
gint bytes = 0;
buffer_name = g_value_get_string (gimp_value_array_index (args, 0));
......@@ -259,7 +259,7 @@ buffer_get_image_type_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
const gchar *buffer_name;
gint32 image_type = 0;
gint image_type = 0;
buffer_name = g_value_get_string (gimp_value_array_index (args, 0));
......@@ -309,11 +309,11 @@ register_buffer_procs (GimpPDB *pdb)
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("num-buffers",
"num buffers",
"The number of buffers",
0, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("num-buffers",
"num buffers",
"The number of buffers",
0, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_string_array ("buffer-list",
"buffer list",
......@@ -406,11 +406,11 @@ register_buffer_procs (GimpPDB *pdb)
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("width",
"width",
"The buffer width",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("width",
"width",
"The buffer width",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
......@@ -436,11 +436,11 @@ register_buffer_procs (GimpPDB *pdb)
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("height",
"height",
"The buffer height",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("height",
"height",
"The buffer height",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
......@@ -466,11 +466,11 @@ register_buffer_procs (GimpPDB *pdb)
NULL,
GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure,
gimp_param_spec_int32 ("bytes",
"bytes",
"The buffer bpp",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("bytes",
"bytes",
"The buffer bpp",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
......
......@@ -55,8 +55,8 @@ channel_new_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
GimpImage *image;
gint32 width;
gint32 height;
gint width;
gint height;
const gchar *name;
gdouble opacity;
GimpRGB color;
......@@ -100,7 +100,7 @@ channel_new_from_component_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpValueArray *return_vals;
GimpImage *image;
gint32 component;
gint component;
const gchar *name;
GimpChannel *channel = NULL;
......@@ -183,9 +183,9 @@ channel_combine_masks_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
GimpChannel *channel1;
GimpChannel *channel2;
gint32 operation;
gint32 offx;
gint32 offy;
gint operation;
gint offx;
gint offy;
channel1 = gimp_value_get_channel (gimp_value_array_index (args, 0), gimp);
channel2 = gimp_value_get_channel (gimp_value_array_index (args, 1), gimp);
......@@ -396,17 +396,17 @@ register_channel_procs (GimpPDB *pdb)
pdb->gimp, FALSE,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("width",
"width",
"The channel width",
1, GIMP_MAX_IMAGE_SIZE, 1,
GIMP_PARAM_READWRITE));
g_param_spec_int ("width",
"width",
"The channel width",
1, GIMP_MAX_IMAGE_SIZE, 1,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("height",
"height",
"The channel height",
1, GIMP_MAX_IMAGE_SIZE, 1,
GIMP_PARAM_READWRITE));
g_param_spec_int ("height",
"height",
"The channel height",
1, GIMP_MAX_IMAGE_SIZE, 1,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("name",
"name",
......@@ -544,17 +544,17 @@ register_channel_procs (GimpPDB *pdb)
GIMP_CHANNEL_OP_ADD,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("offx",
"offx",
"x offset between upper left corner of channels: (second - first)",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("offx",
"offx",
"x offset between upper left corner of channels: (second - first)",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure,
gimp_param_spec_int32 ("offy",
"offy",
"y offset between upper left corner of channels: (second - first)",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
g_param_spec_int ("offy",
"offy",
"y offset between upper left corner of channels: (second - first)",
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
g_object_unref (procedure);
......
......@@ -114,7 +114,7 @@ context_list_paint_methods_invoker (GimpProcedure *procedure,
GError **error)
{
GimpValueArray *return_vals;
gint32 num_paint_methods = 0;
gint num_paint_methods = 0;
gchar **paint_methods = NULL;
paint_methods = gimp_container_get_name_array (gimp->paint_info_list,
......@@ -192,7 +192,7 @@ context_get_stroke_method_invoker (GimpProcedure *procedure,
GError **error)
{
GimpValueArray *return_vals;
gint32 stroke_method = 0;
gint stroke_method = 0;
GimpStrokeOptions *options =
gimp_pdb_context_get_stroke_options (GIMP_PDB_CONTEXT (context));
......@@ -216,7 +216,7 @@ context_set_stroke_method_invoker (GimpProcedure *procedure,
GError **error)
{
gboolean success = TRUE;
gint32 stroke_method;
gint stroke_method;
stroke_method = g_value_get_enum (gimp_value_array_index (args, 0));
......@@ -396,7 +396,7 @@ context_get_paint_mode_invoker (GimpProcedure *procedure,
GError **error)
{
GimpValueArray *return_vals;
gint32 paint_mode = 0;
gint paint_mode = 0;
paint_mode = gimp_context_get_paint_mode (context);
......@@ -415,7 +415,7 @@ context_set_paint_mode_invoker (GimpProcedure *procedure,
GError **error)
{
gboolean success = TRUE;
gint32 paint_mode;
gint paint_mode;
paint_mode = g_value_get_enum (gimp_value_array_index (args, 0));
......@@ -542,7 +542,7 @@ context_get_line_cap_style_invoker (GimpProcedure *procedure,
GError **error)
{
GimpValueArray *return_vals;
gint32 cap_style = 0;
gint cap_style = 0;
GimpStrokeOptions *options =
gimp_pdb_context_get_stroke_options (GIMP_PDB_CONTEXT (context));
......@@ -566,7 +566,7 @@ context_set_line_cap_style_invoker (GimpProcedure *procedure,
GError **error)