Commit caa61eef authored by Michael Natterer's avatar Michael Natterer 😴

libgimp, pdb: remove gimp_run_procedure_with_array() from gimp.[ch]

and add it to gimplegacy.[ch] as gimp_run_procedure_array().
Regenerate all PDB wrapper accordingly.
parent c2e53748
Pipeline #102427 passed with stages
in 22 minutes and 28 seconds
......@@ -739,53 +739,6 @@ gimp_quit (void)
exit (EXIT_SUCCESS);
}
GimpValueArray *
gimp_run_procedure_with_array (const gchar *name,
GimpValueArray *arguments)
{
GPProcRun proc_run;
GPProcReturn *proc_return;
GimpWireMessage msg;
GimpValueArray *return_values;
g_return_val_if_fail (name != NULL, NULL);
g_return_val_if_fail (arguments != NULL, NULL);
proc_run.name = (gchar *) name;
proc_run.nparams = gimp_value_array_length (arguments);
proc_run.params = _gimp_value_array_to_gp_params (arguments, FALSE);
if (PLUG_IN)
{
if (! gp_proc_run_write (_gimp_plug_in_get_write_channel (PLUG_IN),
&proc_run, PLUG_IN))
gimp_quit ();
_gimp_plug_in_read_expect_msg (PLUG_IN, &msg, GP_PROC_RETURN);
}
else
{
if (! gp_proc_run_write (_gimp_writechannel, &proc_run, NULL))
gimp_quit ();
_gimp_read_expect_msg (&msg, GP_PROC_RETURN);
}
proc_return = msg.data;
return_values = _gimp_gp_params_to_value_array (NULL,
NULL, 0,
proc_return->params,
proc_return->nparams,
TRUE, FALSE);
gimp_wire_destroy (&msg);
_gimp_set_pdb_error (return_values);
return return_values;
}
/**
* gimp_get_pdb_error:
*
......
......@@ -700,7 +700,7 @@ EXPORTS
gimp_register_thumbnail_loader
gimp_run_procedure
gimp_run_procedure2
gimp_run_procedure_with_array
gimp_run_procedure_array
gimp_selection_all
gimp_selection_border
gimp_selection_bounds
......
......@@ -157,14 +157,6 @@ GimpPDB * gimp_get_pdb (void);
*/
void gimp_quit (void) G_GNUC_NORETURN;
/* Run a procedure in the procedure database. The parameters are
* specified as a GimpValueArray, so are the return values.
*
* FIXME this API is not final!
*/
GimpValueArray * gimp_run_procedure_with_array (const gchar *name,
GimpValueArray *arguments);
/* Retrieve the error message and return status for the last procedure
* call.
*/
......
......@@ -64,8 +64,8 @@ gimp_version (void)
"gimp-version",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-version",
args);
return_vals = gimp_run_procedure_array ("gimp-version",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -102,8 +102,8 @@ gimp_getpid (void)
"gimp-getpid",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-getpid",
args);
return_vals = gimp_run_procedure_array ("gimp-getpid",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -143,8 +143,8 @@ gimp_attach_parasite (const GimpParasite *parasite)
"gimp-attach-parasite",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-attach-parasite",
args);
return_vals = gimp_run_procedure_array ("gimp-attach-parasite",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -184,8 +184,8 @@ gimp_detach_parasite (const gchar *name)
"gimp-detach-parasite",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-detach-parasite",
args);
return_vals = gimp_run_procedure_array ("gimp-detach-parasite",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -224,8 +224,8 @@ gimp_get_parasite (const gchar *name)
"gimp-get-parasite",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-get-parasite",
args);
return_vals = gimp_run_procedure_array ("gimp-get-parasite",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -265,8 +265,8 @@ gimp_get_parasite_list (gint *num_parasites)
"gimp-get-parasite-list",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-get-parasite-list",
args);
return_vals = gimp_run_procedure_array ("gimp-get-parasite-list",
args);
gimp_value_array_unref (args);
*num_parasites = 0;
......@@ -311,8 +311,8 @@ gimp_temp_name (const gchar *extension)
"gimp-temp-name",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-temp-name",
args);
return_vals = gimp_run_procedure_array ("gimp-temp-name",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......
......@@ -64,8 +64,8 @@ gimp_brush_new (const gchar *name)
"gimp-brush-new",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-new",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-new",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -106,8 +106,8 @@ gimp_brush_duplicate (const gchar *name)
"gimp-brush-duplicate",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-duplicate",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-duplicate",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -147,8 +147,8 @@ gimp_brush_is_generated (const gchar *name)
"gimp-brush-is-generated",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-is-generated",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-is-generated",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -193,8 +193,8 @@ gimp_brush_rename (const gchar *name,
"gimp-brush-rename",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-rename",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-rename",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -234,8 +234,8 @@ gimp_brush_delete (const gchar *name)
"gimp-brush-delete",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-delete",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-delete",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -274,8 +274,8 @@ gimp_brush_is_editable (const gchar *name)
"gimp-brush-is-editable",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-is-editable",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-is-editable",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -324,8 +324,8 @@ gimp_brush_get_info (const gchar *name,
"gimp-brush-get-info",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-get-info",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-get-info",
args);
gimp_value_array_unref (args);
*width = 0;
......@@ -394,8 +394,8 @@ gimp_brush_get_pixels (const gchar *name,
"gimp-brush-get-pixels",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-get-pixels",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-get-pixels",
args);
gimp_value_array_unref (args);
*width = 0;
......@@ -459,8 +459,8 @@ gimp_brush_get_spacing (const gchar *name,
"gimp-brush-get-spacing",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-get-spacing",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-get-spacing",
args);
gimp_value_array_unref (args);
*spacing = 0;
......@@ -509,8 +509,8 @@ gimp_brush_set_spacing (const gchar *name,
"gimp-brush-set-spacing",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-set-spacing",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-set-spacing",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -554,8 +554,8 @@ gimp_brush_get_shape (const gchar *name)
"gimp-brush-get-shape",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-get-shape",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-get-shape",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -604,8 +604,8 @@ gimp_brush_set_shape (const gchar *name,
"gimp-brush-set-shape",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-set-shape",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-set-shape",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -646,8 +646,8 @@ gimp_brush_get_radius (const gchar *name)
"gimp-brush-get-radius",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-get-radius",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-get-radius",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -692,8 +692,8 @@ gimp_brush_set_radius (const gchar *name,
"gimp-brush-set-radius",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-set-radius",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-set-radius",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -734,8 +734,8 @@ gimp_brush_get_spikes (const gchar *name)
"gimp-brush-get-spikes",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-get-spikes",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-get-spikes",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -780,8 +780,8 @@ gimp_brush_set_spikes (const gchar *name,
"gimp-brush-set-spikes",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-set-spikes",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-set-spikes",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -824,8 +824,8 @@ gimp_brush_get_hardness (const gchar *name)
"gimp-brush-get-hardness",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-get-hardness",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-get-hardness",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -871,8 +871,8 @@ gimp_brush_set_hardness (const gchar *name,
"gimp-brush-set-hardness",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-set-hardness",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-set-hardness",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -914,8 +914,8 @@ gimp_brush_get_aspect_ratio (const gchar *name)
"gimp-brush-get-aspect-ratio",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-get-aspect-ratio",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-get-aspect-ratio",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -961,8 +961,8 @@ gimp_brush_set_aspect_ratio (const gchar *name,
"gimp-brush-set-aspect-ratio",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-set-aspect-ratio",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-set-aspect-ratio",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -1003,8 +1003,8 @@ gimp_brush_get_angle (const gchar *name)
"gimp-brush-get-angle",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-get-angle",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-get-angle",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -1049,8 +1049,8 @@ gimp_brush_set_angle (const gchar *name,
"gimp-brush-set-angle",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brush-set-angle",
args);
return_vals = gimp_run_procedure_array ("gimp-brush-set-angle",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......
......@@ -59,8 +59,8 @@ gimp_brushes_refresh (void)
"gimp-brushes-refresh",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brushes-refresh",
args);
return_vals = gimp_run_procedure_array ("gimp-brushes-refresh",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -103,8 +103,8 @@ gimp_brushes_get_list (const gchar *filter,
"gimp-brushes-get-list",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brushes-get-list",
args);
return_vals = gimp_run_procedure_array ("gimp-brushes-get-list",
args);
gimp_value_array_unref (args);
*num_brushes = 0;
......
......@@ -81,8 +81,8 @@ gimp_brushes_popup (const gchar *brush_callback,
"gimp-brushes-popup",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brushes-popup",
args);
return_vals = gimp_run_procedure_array ("gimp-brushes-popup",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -119,8 +119,8 @@ gimp_brushes_close_popup (const gchar *brush_callback)
"gimp-brushes-close-popup",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brushes-close-popup",
args);
return_vals = gimp_run_procedure_array ("gimp-brushes-close-popup",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -173,8 +173,8 @@ gimp_brushes_set_popup (const gchar *brush_callback,
"gimp-brushes-set-popup",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-brushes-set-popup",
args);
return_vals = gimp_run_procedure_array ("gimp-brushes-set-popup",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......
......@@ -68,8 +68,8 @@ gimp_buffers_get_list (const gchar *filter,
"gimp-buffers-get-list",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-buffers-get-list",
args);
return_vals = gimp_run_procedure_array ("gimp-buffers-get-list",
args);
gimp_value_array_unref (args);
*num_buffers = 0;
......@@ -119,8 +119,8 @@ gimp_buffer_rename (const gchar *buffer_name,
"gimp-buffer-rename",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-buffer-rename",
args);
return_vals = gimp_run_procedure_array ("gimp-buffer-rename",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -160,8 +160,8 @@ gimp_buffer_delete (const gchar *buffer_name)
"gimp-buffer-delete",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-buffer-delete",
args);
return_vals = gimp_run_procedure_array ("gimp-buffer-delete",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -200,8 +200,8 @@ gimp_buffer_get_width (const gchar *buffer_name)
"gimp-buffer-get-width",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-buffer-get-width",
args);
return_vals = gimp_run_procedure_array ("gimp-buffer-get-width",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -241,8 +241,8 @@ gimp_buffer_get_height (const gchar *buffer_name)
"gimp-buffer-get-height",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-buffer-get-height",
args);
return_vals = gimp_run_procedure_array ("gimp-buffer-get-height",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -282,8 +282,8 @@ gimp_buffer_get_bytes (const gchar *buffer_name)
"gimp-buffer-get-bytes",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-buffer-get-bytes",
args);
return_vals = gimp_run_procedure_array ("gimp-buffer-get-bytes",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -323,8 +323,8 @@ gimp_buffer_get_image_type (const gchar *buffer_name)
"gimp-buffer-get-image-type",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-buffer-get-image-type",
args);
return_vals = gimp_run_procedure_array ("gimp-buffer-get-image-type",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......
......@@ -87,8 +87,8 @@ _gimp_channel_new (gint32 image_ID,
"gimp-channel-new",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-channel-new",
args);
return_vals = gimp_run_procedure_array ("gimp-channel-new",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -140,8 +140,8 @@ gimp_channel_new_from_component (gint32 image_ID,
"gimp-channel-new-from-component",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-channel-new-from-component",
args);
return_vals = gimp_run_procedure_array ("gimp-channel-new-from-component",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -181,8 +181,8 @@ gimp_channel_copy (gint32 channel_ID)
"gimp-channel-copy",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-channel-copy",
args);
return_vals = gimp_run_procedure_array ("gimp-channel-copy",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -237,8 +237,8 @@ gimp_channel_combine_masks (gint32 channel1_ID,
"gimp-channel-combine-masks",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-channel-combine-masks",
args);
return_vals = gimp_run_procedure_array ("gimp-channel-combine-masks",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -277,8 +277,8 @@ gimp_channel_get_show_masked (gint32 channel_ID)
"gimp-channel-get-show-masked",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-channel-get-show-masked",
args);
return_vals = gimp_run_procedure_array ("gimp-channel-get-show-masked",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -322,8 +322,8 @@ gimp_channel_set_show_masked (gint32 channel_ID,
"gimp-channel-set-show-masked",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-channel-set-show-masked",
args);
return_vals = gimp_run_procedure_array ("gimp-channel-set-show-masked",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -360,8 +360,8 @@ gimp_channel_get_opacity (gint32 channel_ID)
"gimp-channel-get-opacity",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-channel-get-opacity",
args);
return_vals = gimp_run_procedure_array ("gimp-channel-get-opacity",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -403,8 +403,8 @@ gimp_channel_set_opacity (gint32 channel_ID,
"gimp-channel-set-opacity",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-channel-set-opacity",
args);
return_vals = gimp_run_procedure_array ("gimp-channel-set-opacity",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -443,8 +443,8 @@ gimp_channel_get_color (gint32 channel_ID,
"gimp-channel-get-color",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-channel-get-color",
args);
return_vals = gimp_run_procedure_array ("gimp-channel-get-color",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -488,8 +488,8 @@ gimp_channel_set_color (gint32 channel_ID,
"gimp-channel-set-color",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-channel-set-color",
args);
return_vals = gimp_run_procedure_array ("gimp-channel-set-color",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......
This diff is collapsed.
......@@ -66,8 +66,8 @@ gimp_debug_timer_start (void)
"gimp-debug-timer-start",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-debug-timer-start",
args);
return_vals = gimp_run_procedure_array ("gimp-debug-timer-start",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -108,8 +108,8 @@ gimp_debug_timer_end (void)
"gimp-debug-timer-end",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-debug-timer-end",
args);
return_vals = gimp_run_procedure_array ("gimp-debug-timer-end",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......
......@@ -64,8 +64,8 @@ gimp_display_is_valid (gint32 display_ID)
"gimp-display-is-valid",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-display-is-valid",
args);
return_vals = gimp_run_procedure_array ("gimp-display-is-valid",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -108,8 +108,8 @@ gimp_display_new (gint32 image_ID)
"gimp-display-new",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-display-new",
args);
return_vals = gimp_run_procedure_array ("gimp-display-new",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -151,8 +151,8 @@ gimp_display_delete (gint32 display_ID)
"gimp-display-delete",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-display-delete",
args);
return_vals = gimp_run_procedure_array ("gimp-display-delete",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -195,8 +195,8 @@ gimp_display_get_window_handle (gint32 display_ID)
"gimp-display-get-window-handle",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-display-get-window-handle",
args);
return_vals = gimp_run_procedure_array ("gimp-display-get-window-handle",
args);
gimp_value_array_unref (args);
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS)
......@@ -234,8 +234,8 @@ gimp_displays_flush (void)
"gimp-displays-flush",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-displays-flush",
args);
return_vals = gimp_run_procedure_array ("gimp-displays-flush",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......@@ -279,8 +279,8 @@ gimp_displays_reconnect (gint32 old_image_ID,
"gimp-displays-reconnect",
args);
else
return_vals = gimp_run_procedure_with_array ("gimp-displays-reconnect",
args);
return_vals = gimp_run_procedure_array ("gimp-displays-reconnect",
args);
gimp_value_array_unref (args);
success = g_value_get_enum (gimp_value_array_index (return_vals, 0)) == GIMP_PDB_SUCCESS;
......