libgimpconfig: gimp_config_param_spec_duplicate() support GFile

object param specs.
This commit is contained in:
Michael Natterer 2019-09-16 10:14:39 +02:00
parent ccc8224aa9
commit 832e7fafc1
1 changed files with 11 additions and 0 deletions

View File

@ -320,6 +320,17 @@ gimp_config_param_spec_duplicate (GParamSpec *pspec)
flags);
}
}
else if (G_IS_PARAM_SPEC_OBJECT (pspec))
{
GType value_type = G_PARAM_SPEC_VALUE_TYPE (pspec);
if (value_type == G_TYPE_FILE)
{
copy = g_param_spec_object (name, nick, blurb,
value_type,
flags);
}
}
if (copy)
{