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:
@ -539,7 +539,8 @@ gimp_config_deserialize_enum (GValue *value,
|
||||
* enum to find the ideitifier
|
||||
*/
|
||||
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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user