mirror of https://github.com/GNOME/gimp.git
app: copy the new GEGL property keys in gimp_param_spec_duplicate()
This commit is contained in:
parent
ae331bc7ac
commit
43244bd461
|
@ -244,5 +244,14 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
|
||||||
g_type_name (G_TYPE_FROM_INSTANCE (pspec)), pspec->name);
|
g_type_name (G_TYPE_FROM_INSTANCE (pspec)), pspec->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (copy)
|
||||||
|
{
|
||||||
|
GQuark quark = g_quark_from_static_string ("gegl-property-keys");
|
||||||
|
GHashTable *keys = g_param_spec_get_qdata (pspec, quark);
|
||||||
|
|
||||||
|
if (keys)
|
||||||
|
g_param_spec_set_qdata (copy, quark, g_hash_table_ref (keys));
|
||||||
|
}
|
||||||
|
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue