can't just cast the GPParamDefs to ProcArgs any more, their struct layouts
2006-03-30 Michael Natterer <mitch@gimp.org> * app/plug-in/plug-in-params.c (plug_in_param_defs_check): can't just cast the GPParamDefs to ProcArgs any more, their struct layouts are different now. Convert them into temporary ProcArgs before calling plug_in_proc_args_check()
This commit is contained in:

committed by
Michael Natterer

parent
b469509570
commit
d69e93ceb1
@ -1,3 +1,10 @@
|
|||||||
|
2006-03-30 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/plug-in/plug-in-params.c (plug_in_param_defs_check): can't
|
||||||
|
just cast the GPParamDefs to ProcArgs any more, their struct
|
||||||
|
layouts are different now. Convert them into temporary ProcArgs
|
||||||
|
before calling plug_in_proc_args_check()
|
||||||
|
|
||||||
2006-03-29 Michael Natterer <mitch@gimp.org>
|
2006-03-29 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/core/gimpparamspecs.[ch]: added GimpParamSpecEnum, which is
|
* app/core/gimpparamspecs.[ch]: added GimpParamSpecEnum, which is
|
||||||
|
@ -462,15 +462,33 @@ plug_in_param_defs_check (const gchar *plug_in_name,
|
|||||||
guint32 n_return_vals,
|
guint32 n_return_vals,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
return plug_in_proc_args_check (plug_in_name,
|
ProcArg *args;
|
||||||
plug_in_prog,
|
ProcArg *return_args;
|
||||||
procedure_name,
|
gboolean success;
|
||||||
menu_path,
|
gint i;
|
||||||
(ProcArg *) params,
|
|
||||||
n_args,
|
args = g_new0 (ProcArg, n_args);
|
||||||
(ProcArg *) return_vals,
|
for (i = 0; i < n_args; i++)
|
||||||
n_return_vals,
|
args[i].arg_type = params[i].type;
|
||||||
error);
|
|
||||||
|
return_args = g_new0 (ProcArg, n_return_vals);
|
||||||
|
for (i = 0; i < n_return_vals; i++)
|
||||||
|
return_args[i].arg_type = return_vals[i].type;
|
||||||
|
|
||||||
|
success = plug_in_proc_args_check (plug_in_name,
|
||||||
|
plug_in_prog,
|
||||||
|
procedure_name,
|
||||||
|
menu_path,
|
||||||
|
args,
|
||||||
|
n_args,
|
||||||
|
return_args,
|
||||||
|
n_return_vals,
|
||||||
|
error);
|
||||||
|
|
||||||
|
g_free (args);
|
||||||
|
g_free (return_args);
|
||||||
|
|
||||||
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
Reference in New Issue
Block a user