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

app: gimp_param_spec_duplicate(): don't warn

about unsupported GParamSpecs, simply return NULL and move the warning
to the only caller instead.
parent 3f84fbee
Pipeline #114954 passed with stages
in 12 minutes and 49 seconds
......@@ -244,16 +244,6 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
&gimp_color,
flags);
}
else if (G_IS_PARAM_SPEC_OBJECT (pspec) ||
G_IS_PARAM_SPEC_POINTER (pspec))
{
/* silently ignore object properties */
}
else
{
g_warning ("%s: not supported: %s (%s)\n", G_STRFUNC,
g_type_name (G_TYPE_FROM_INSTANCE (pspec)), pspec->name);
}
if (copy)
{
......
......@@ -192,6 +192,14 @@ gimp_operation_config_class_init (GObjectClass *klass,
{
g_object_class_install_property (klass, i + 1, copy);
}
else if (! G_IS_PARAM_SPEC_OBJECT (pspec) &&
! G_IS_PARAM_SPEC_POINTER (pspec))
{
/* silently ignore object properties */
g_warning ("%s: not supported: %s (%s)\n", G_STRFUNC,
g_type_name (G_TYPE_FROM_INSTANCE (pspec)), pspec->name);
}
}
}
......
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