Commit deb5760b authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

Sven Neumann <sven@gimp.org>

2000-08-03  Michael Natterer  <mitch@gimp.org>
	    Sven Neumann  <sven@gimp.org>

	* libgimp/*_pdb.c
	* libgimp/gimpmenu.c
	* DrMartin.Weber: removed COMPAT_CRUFT
parent 3c4fc750
2000-08-03 Michael Natterer <mitch@gimp.org>
Sven Neumann <sven@gimp.org>
* libgimp/*_pdb.c
* libgimp/gimpmenu.c: removed COMPAT_CRUFT
2000-08-03 Michael Natterer <mitch@gimp.org>
Sven Neumann <sven@gimp.org>
......
......@@ -31,20 +31,20 @@ gimp_brushes_get_brush_data (gchar *brush_name,
gint *mask_data_size,
guint8 **mask_data)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_brushes_get_brush_data",
&nreturn_vals,
PARAM_STRING, brush_name,
PARAM_END);
GIMP_PDB_STRING, brush_name,
GIMP_PDB_END);
brush_name = NULL;
*width = 0;
*height = 0;
*mask_data_size = 0;
*mask_data = NULL;
if (return_vals[0].data.d_status == STATUS_SUCCESS)
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
{
brush_name = g_strdup (return_vals[1].data.d_string);
*opacity = return_vals[2].data.d_float;
......
......@@ -31,18 +31,18 @@ gimp_brushes_popup (gchar *brush_callback,
gint spacing,
GimpLayerModeEffects paint_mode)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_brushes_popup",
&nreturn_vals,
PARAM_STRING, brush_callback,
PARAM_STRING, popup_title,
PARAM_STRING, initial_brush,
PARAM_FLOAT, opacity,
PARAM_INT32, spacing,
PARAM_INT32, paint_mode,
PARAM_END);
GIMP_PDB_STRING, brush_callback,
GIMP_PDB_STRING, popup_title,
GIMP_PDB_STRING, initial_brush,
GIMP_PDB_FLOAT, opacity,
GIMP_PDB_INT32, spacing,
GIMP_PDB_INT32, paint_mode,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -50,13 +50,13 @@ gimp_brushes_popup (gchar *brush_callback,
void
gimp_brushes_close_popup (gchar *brush_callback)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_brushes_close_popup",
&nreturn_vals,
PARAM_STRING, brush_callback,
PARAM_END);
GIMP_PDB_STRING, brush_callback,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -68,17 +68,17 @@ gimp_brushes_set_popup (gchar *brush_callback,
gint spacing,
GimpLayerModeEffects paint_mode)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_brushes_set_popup",
&nreturn_vals,
PARAM_STRING, brush_callback,
PARAM_STRING, brush_name,
PARAM_FLOAT, opacity,
PARAM_INT32, spacing,
PARAM_INT32, paint_mode,
PARAM_END);
GIMP_PDB_STRING, brush_callback,
GIMP_PDB_STRING, brush_name,
GIMP_PDB_FLOAT, opacity,
GIMP_PDB_INT32, spacing,
GIMP_PDB_INT32, paint_mode,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -33,7 +33,7 @@ _gimp_channel_new (gint32 image_ID,
guchar green,
guchar blue)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
gint32 channel_ID = -1;
guchar color[3];
......@@ -44,15 +44,15 @@ _gimp_channel_new (gint32 image_ID,
return_vals = gimp_run_procedure ("gimp_channel_new",
&nreturn_vals,
PARAM_IMAGE, image_ID,
PARAM_INT32, width,
PARAM_INT32, height,
PARAM_STRING, name,
PARAM_FLOAT, opacity,
PARAM_COLOR, color,
PARAM_END);
if (return_vals[0].data.d_status == STATUS_SUCCESS)
GIMP_PDB_IMAGE, image_ID,
GIMP_PDB_INT32, width,
GIMP_PDB_INT32, height,
GIMP_PDB_STRING, name,
GIMP_PDB_FLOAT, opacity,
GIMP_PDB_COLOR, color,
GIMP_PDB_END);
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
channel_ID = return_vals[1].data.d_channel;
gimp_destroy_params (return_vals, nreturn_vals);
......@@ -63,16 +63,16 @@ _gimp_channel_new (gint32 image_ID,
gint32
gimp_channel_copy (gint32 channel_ID)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
gint32 channel_copy_ID = -1;
return_vals = gimp_run_procedure ("gimp_channel_copy",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_END);
if (return_vals[0].data.d_status == STATUS_SUCCESS)
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
channel_copy_ID = return_vals[1].data.d_channel;
gimp_destroy_params (return_vals, nreturn_vals);
......@@ -83,13 +83,13 @@ gimp_channel_copy (gint32 channel_ID)
void
gimp_channel_delete (gint32 channel_ID)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_channel_delete",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -97,16 +97,16 @@ gimp_channel_delete (gint32 channel_ID)
gchar *
gimp_channel_get_name (gint32 channel_ID)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
gchar *name = NULL;
return_vals = gimp_run_procedure ("gimp_channel_get_name",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_END);
if (return_vals[0].data.d_status == STATUS_SUCCESS)
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
name = g_strdup (return_vals[1].data.d_string);
gimp_destroy_params (return_vals, nreturn_vals);
......@@ -118,14 +118,14 @@ void
gimp_channel_set_name (gint32 channel_ID,
gchar *name)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_channel_set_name",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_STRING, name,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_STRING, name,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -133,16 +133,16 @@ gimp_channel_set_name (gint32 channel_ID,
gboolean
gimp_channel_get_visible (gint32 channel_ID)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
gboolean visible = FALSE;
return_vals = gimp_run_procedure ("gimp_channel_get_visible",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_END);
if (return_vals[0].data.d_status == STATUS_SUCCESS)
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
visible = return_vals[1].data.d_int32;
gimp_destroy_params (return_vals, nreturn_vals);
......@@ -154,14 +154,14 @@ void
gimp_channel_set_visible (gint32 channel_ID,
gboolean visible)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_channel_set_visible",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_INT32, visible,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_INT32, visible,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -169,16 +169,16 @@ gimp_channel_set_visible (gint32 channel_ID,
gboolean
gimp_channel_get_show_masked (gint32 channel_ID)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
gboolean show_masked = FALSE;
return_vals = gimp_run_procedure ("gimp_channel_get_show_masked",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_END);
if (return_vals[0].data.d_status == STATUS_SUCCESS)
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
show_masked = return_vals[1].data.d_int32;
gimp_destroy_params (return_vals, nreturn_vals);
......@@ -190,14 +190,14 @@ void
gimp_channel_set_show_masked (gint32 channel_ID,
gboolean show_masked)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_channel_set_show_masked",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_INT32, show_masked,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_INT32, show_masked,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -205,16 +205,16 @@ gimp_channel_set_show_masked (gint32 channel_ID,
gdouble
gimp_channel_get_opacity (gint32 channel_ID)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
gdouble opacity = 0;
return_vals = gimp_run_procedure ("gimp_channel_get_opacity",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_END);
if (return_vals[0].data.d_status == STATUS_SUCCESS)
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
opacity = return_vals[1].data.d_float;
gimp_destroy_params (return_vals, nreturn_vals);
......@@ -226,14 +226,14 @@ void
gimp_channel_set_opacity (gint32 channel_ID,
gdouble opacity)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_channel_set_opacity",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_FLOAT, opacity,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_FLOAT, opacity,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -244,15 +244,15 @@ gimp_channel_get_color (gint32 channel_ID,
guchar *green,
guchar *blue)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_channel_get_color",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_END);
if (return_vals[0].data.d_status == STATUS_SUCCESS)
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
{
*red = return_vals[1].data.d_color.red;
*green = return_vals[1].data.d_color.green;
......@@ -268,7 +268,7 @@ gimp_channel_set_color (gint32 channel_ID,
guchar green,
guchar blue)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
guchar color[3];
......@@ -278,9 +278,9 @@ gimp_channel_set_color (gint32 channel_ID,
return_vals = gimp_run_procedure ("gimp_channel_set_color",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_COLOR, color,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_COLOR, color,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -288,16 +288,16 @@ gimp_channel_set_color (gint32 channel_ID,
gint
gimp_channel_get_tattoo (gint32 channel_ID)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
gint tattoo = 0;
return_vals = gimp_run_procedure ("gimp_channel_get_tattoo",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_END);
if (return_vals[0].data.d_status == STATUS_SUCCESS)
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
tattoo = return_vals[1].data.d_tattoo;
gimp_destroy_params (return_vals, nreturn_vals);
......@@ -309,14 +309,14 @@ void
gimp_channel_set_tattoo (gint32 channel_ID,
gint tattoo)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_channel_set_tattoo",
&nreturn_vals,
PARAM_CHANNEL, channel_ID,
PARAM_INT32, tattoo,
PARAM_END);
GIMP_PDB_CHANNEL, channel_ID,
GIMP_PDB_INT32, tattoo,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -30,17 +30,17 @@ gimp_channel_ops_offset (gint32 drawable_ID,
gint offset_x,
gint offset_y)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_channel_ops_offset",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, wrap_around,
PARAM_INT32, fill_type,
PARAM_INT32, offset_x,
PARAM_INT32, offset_y,
PARAM_END);
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_INT32, wrap_around,
GIMP_PDB_INT32, fill_type,
GIMP_PDB_INT32, offset_x,
GIMP_PDB_INT32, offset_y,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -48,16 +48,16 @@ gimp_channel_ops_offset (gint32 drawable_ID,
gint32
gimp_channel_ops_duplicate (gint32 image_ID)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
gint32 new_image_ID = -1;
return_vals = gimp_run_procedure ("gimp_channel_ops_duplicate",
&nreturn_vals,
PARAM_IMAGE, image_ID,
PARAM_END);
GIMP_PDB_IMAGE, image_ID,
GIMP_PDB_END);
if (return_vals[0].data.d_status == STATUS_SUCCESS)
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
new_image_ID = return_vals[1].data.d_image;
gimp_destroy_params (return_vals, nreturn_vals);
......
......@@ -28,15 +28,15 @@ gimp_brightness_contrast (gint32 drawable_ID,
gint brightness,
gint contrast)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_brightness_contrast",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, brightness,
PARAM_INT32, contrast,
PARAM_END);
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_INT32, brightness,
GIMP_PDB_INT32, contrast,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -50,19 +50,19 @@ gimp_levels (gint32 drawable_ID,
gint low_output,
gint high_output)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_levels",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, channel,
PARAM_INT32, low_input,
PARAM_INT32, high_input,
PARAM_FLOAT, gamma,
PARAM_INT32, low_output,
PARAM_INT32, high_output,
PARAM_END);
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_INT32, channel,
GIMP_PDB_INT32, low_input,
GIMP_PDB_INT32, high_input,
GIMP_PDB_FLOAT, gamma,
GIMP_PDB_INT32, low_output,
GIMP_PDB_INT32, high_output,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -71,14 +71,14 @@ void
gimp_posterize (gint32 drawable_ID,
gint levels)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_posterize",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, levels,
PARAM_END);
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_INT32, levels,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -86,13 +86,13 @@ gimp_posterize (gint32 drawable_ID,
void
gimp_desaturate (gint32 drawable_ID)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_desaturate",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_END);
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -101,14 +101,14 @@ void
gimp_equalize (gint32 drawable_ID,
gboolean mask_only)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_equalize",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, mask_only,
PARAM_END);
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_INT32, mask_only,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -116,13 +116,13 @@ gimp_equalize (gint32 drawable_ID,
void
gimp_invert (gint32 drawable_ID)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_invert",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_END);
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -133,16 +133,16 @@ gimp_curves_spline (gint32 drawable_ID,
gint num_points,
guint8 *control_pts)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_curves_spline",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, channel,
PARAM_INT32, num_points,
PARAM_INT8ARRAY, control_pts,
PARAM_END);
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_INT32, channel,
GIMP_PDB_INT32, num_points,
GIMP_PDB_INT8ARRAY, control_pts,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -153,16 +153,16 @@ gimp_curves_explicit (gint32 drawable_ID,
gint num_bytes,
guint8 *curve)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_curves_explicit",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, channel,
PARAM_INT32, num_bytes,
PARAM_INT8ARRAY, curve,
PARAM_END);
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_INT32, channel,
GIMP_PDB_INT32, num_bytes,
GIMP_PDB_INT8ARRAY, curve,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -175,18 +175,18 @@ gimp_color_balance (gint32 drawable_ID,
gdouble magenta_green,
gdouble yellow_blue)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_color_balance",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, transfer_mode,
PARAM_INT32, preserve_lum,
PARAM_FLOAT, cyan_red,
PARAM_FLOAT, magenta_green,
PARAM_FLOAT, yellow_blue,
PARAM_END);
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_INT32, transfer_mode,
GIMP_PDB_INT32, preserve_lum,
GIMP_PDB_FLOAT, cyan_red,
GIMP_PDB_FLOAT, magenta_green,
GIMP_PDB_FLOAT, yellow_blue,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -203,16 +203,16 @@ gimp_histogram (gint32 drawable_ID,
gdouble *count,
gdouble *percentile)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_histogram",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, channel,
PARAM_INT32, start_range,
PARAM_INT32, end_range,
PARAM_END);
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_INT32, channel,
GIMP_PDB_INT32, start_range,
GIMP_PDB_INT32, end_range,
GIMP_PDB_END);
*mean = 0.0;
*std_dev = 0.0;
......@@ -221,7 +221,7 @@ gimp_histogram (gint32 drawable_ID,
*count = 0.0;
*percentile = 0.0;
if (return_vals[0].data.d_status == STATUS_SUCCESS)
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
{
*mean = return_vals[1].data.d_float;
*std_dev = return_vals[2].data.d_float;
......@@ -241,17 +241,17 @@ gimp_hue_saturation (gint32 drawable_ID,
gdouble lightness,
gdouble saturation)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_hue_saturation",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, hue_range,
PARAM_FLOAT, hue_offset,
PARAM_FLOAT, lightness,
PARAM_FLOAT, saturation,
PARAM_END);
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_INT32, hue_range,
GIMP_PDB_FLOAT, hue_offset,
GIMP_PDB_FLOAT, lightness,
GIMP_PDB_FLOAT, saturation,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -261,15 +261,15 @@ gimp_threshold (gint32 drawable_ID,
gint low_threshold,
gint high_threshold)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_threshold",
&nreturn_vals,
PARAM_DRAWABLE, drawable_ID,
PARAM_INT32, low_threshold,
PARAM_INT32, high_threshold,
PARAM_END);
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_INT32, low_threshold,
GIMP_PDB_INT32, high_threshold,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
}
......@@ -26,13 +26,13 @@
void
gimp_convert_rgb (gint32 image_ID)
{
GParam *return_vals;
GimpParam *return_vals;
gint nreturn_vals;
return_vals = gimp_run_procedure ("gimp_convert_rgb",
&nreturn_vals,
PARAM_IMAGE, image_ID,
PARAM_END);
GIMP_PDB_IMAGE, image_ID,
GIMP_PDB_END);