Commit 5c30acd5 authored by Michael Natterer's avatar Michael Natterer 😴

app: gimp_procedure_get_arguments(), _return_values(): use defaults

instead of simply initializing the values to their GTypes. Plug-ins
are too smart now to get away with whatever default values...
parent d2add325
Pipeline #104198 passed with stages
in 56 minutes and 2 seconds
......@@ -543,6 +543,7 @@ gimp_procedure_get_arguments (GimpProcedure *procedure)
for (i = 0; i < procedure->num_args; i++)
{
g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (procedure->args[i]));
g_param_value_set_default (procedure->args[i], &value);
gimp_value_array_append (args, &value);
g_value_unset (&value);
}
......@@ -574,6 +575,7 @@ gimp_procedure_get_return_values (GimpProcedure *procedure,
for (i = 0; i < procedure->num_values; i++)
{
g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (procedure->values[i]));
g_param_value_set_default (procedure->values[i], &value);
gimp_value_array_append (args, &value);
g_value_unset (&value);
}
......
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