mirror of https://github.com/GNOME/gimp.git
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:
parent
4aa7a2411b
commit
4fb62427a2
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue