libgimpconfig: better compat enum handling in gimp_config_deserialize_enum()

The compat enum's GType is now attached to the original enum's GType,
not to the individual GParamSpec.
This commit is contained in:
Michael Natterer 2017-01-08 20:16:47 +01:00
parent 4aa7a2411b
commit 4fb62427a2
1 changed files with 2 additions and 1 deletions

View File

@ -539,7 +539,8 @@ gimp_config_deserialize_enum (GValue *value,
* enum to find the ideitifier * enum to find the ideitifier
*/ */
GQuark quark = g_quark_from_static_string ("gimp-compat-enum"); GQuark quark = g_quark_from_static_string ("gimp-compat-enum");
GType compat_type = (GType) g_param_spec_get_qdata (prop_spec, quark); GType compat_type = (GType) g_type_get_qdata (G_VALUE_TYPE (value),
quark);
if (compat_type) if (compat_type)
{ {