mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 17:59:37 +00:00
libgimp: argh, broke most plug-ins...
Need to push the current procedure around the entire body of gimp_plug_in_proc_run_internal() because _gimp_gp_params_to_value_array() needs access to proxy objects now.
This commit is contained in:
parent
e9b4b7fa0d
commit
33601f7a87
1 changed files with 4 additions and 2 deletions
|
@ -1159,15 +1159,15 @@ gimp_plug_in_proc_run_internal (GimpPlugIn *plug_in,
|
||||||
GimpValueArray *arguments;
|
GimpValueArray *arguments;
|
||||||
GimpValueArray *return_values = NULL;
|
GimpValueArray *return_values = NULL;
|
||||||
|
|
||||||
|
gimp_plug_in_push_procedure (plug_in, procedure);
|
||||||
|
|
||||||
arguments = _gimp_gp_params_to_value_array (NULL,
|
arguments = _gimp_gp_params_to_value_array (NULL,
|
||||||
NULL, 0,
|
NULL, 0,
|
||||||
proc_run->params,
|
proc_run->params,
|
||||||
proc_run->nparams,
|
proc_run->nparams,
|
||||||
FALSE, FALSE);
|
FALSE, FALSE);
|
||||||
|
|
||||||
gimp_plug_in_push_procedure (plug_in, procedure);
|
|
||||||
return_values = gimp_procedure_run (procedure, arguments);
|
return_values = gimp_procedure_run (procedure, arguments);
|
||||||
gimp_plug_in_pop_procedure (plug_in, procedure);
|
|
||||||
|
|
||||||
gimp_value_array_unref (arguments);
|
gimp_value_array_unref (arguments);
|
||||||
|
|
||||||
|
@ -1176,6 +1176,8 @@ gimp_plug_in_proc_run_internal (GimpPlugIn *plug_in,
|
||||||
proc_return->params = _gimp_value_array_to_gp_params (return_values, TRUE);
|
proc_return->params = _gimp_value_array_to_gp_params (return_values, TRUE);
|
||||||
|
|
||||||
gimp_value_array_unref (return_values);
|
gimp_value_array_unref (return_values);
|
||||||
|
|
||||||
|
gimp_plug_in_pop_procedure (plug_in, procedure);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue