Commit 264fed15 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

canonicalize proc args registered by plug-ins.

2005-08-05  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in-message.c (plug_in_handle_proc_install):
	canonicalize proc args registered by plug-ins.

	* plug-ins/script-fu/siod-wrapper.c: removed s/_/-/ for proc args.
parent bc36159a
2005-08-05 Michael Natterer <mitch@gimp.org>
* app/plug-in/plug-in-message.c (plug_in_handle_proc_install):
canonicalize proc args registered by plug-ins.
* plug-ins/script-fu/siod-wrapper.c: removed s/_/-/ for proc args.
2005-08-05 Manish Singh <yosh@gimp.org>
* tools/pdbgen/pdbgen.pl: store canonical names of proc names and
......
......@@ -758,14 +758,14 @@ plug_in_handle_proc_install (PlugIn *plug_in,
for (i = 0; i < proc->num_args; i++)
{
proc->args[i].arg_type = proc_install->params[i].type;
proc->args[i].name = g_strdup (proc_install->params[i].name);
proc->args[i].name = gimp_canonicalize_identifier (proc_install->params[i].name);
proc->args[i].description = g_strdup (proc_install->params[i].description);
}
for (i = 0; i < proc->num_values; i++)
{
proc->values[i].arg_type = proc_install->return_vals[i].type;
proc->values[i].name = g_strdup (proc_install->return_vals[i].name);
proc->values[i].name = gimp_canonicalize_identifier (proc_install->return_vals[i].name);
proc->values[i].description = g_strdup (proc_install->return_vals[i].description);
}
......
......@@ -758,14 +758,14 @@ plug_in_handle_proc_install (PlugIn *plug_in,
for (i = 0; i < proc->num_args; i++)
{
proc->args[i].arg_type = proc_install->params[i].type;
proc->args[i].name = g_strdup (proc_install->params[i].name);
proc->args[i].name = gimp_canonicalize_identifier (proc_install->params[i].name);
proc->args[i].description = g_strdup (proc_install->params[i].description);
}
for (i = 0; i < proc->num_values; i++)
{
proc->values[i].arg_type = proc_install->return_vals[i].type;
proc->values[i].name = g_strdup (proc_install->return_vals[i].name);
proc->values[i].name = gimp_canonicalize_identifier (proc_install->return_vals[i].name);
proc->values[i].description = g_strdup (proc_install->return_vals[i].description);
}
......
......@@ -237,12 +237,8 @@ init_procedures (void)
/* create a new scheme func that calls gimp-proc-db-call */
for (j = 0; j < nparams; j++)
{
gchar *arg_name = params[j].name;
convert_string (arg_name);
args = cons (rintern (arg_name), args);
code = cons (rintern (arg_name), code);
args = cons (rintern (params[j].name), args);
code = cons (rintern (params[j].name), code);
}
/* reverse the list */
......
......@@ -237,12 +237,8 @@ init_procedures (void)
/* create a new scheme func that calls gimp-proc-db-call */
for (j = 0; j < nparams; j++)
{
gchar *arg_name = params[j].name;
convert_string (arg_name);
args = cons (rintern (arg_name), args);
code = cons (rintern (arg_name), code);
args = cons (rintern (params[j].name), args);
code = cons (rintern (params[j].name), code);
}
/* reverse the list */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment