diff --git a/gobject/ChangeLog b/gobject/ChangeLog index a27378126..633e385ca 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,9 @@ +Mon Feb 17 20:59:47 2003 Tim Janik + + * gvalue.c (g_value_register_transform_func): don't assert the types + passed in to have value tables. this prevents dynamic types from + registering transform functions. + Sun Feb 9 13:44:01 2003 Soeren Sandmann * gboxed.c (boxed_proxy_value_init): remove lookup of unused diff --git a/gobject/gvalue.c b/gobject/gvalue.c index b23577a62..67de4602a 100644 --- a/gobject/gvalue.c +++ b/gobject/gvalue.c @@ -277,8 +277,10 @@ g_value_register_transform_func (GType src_type, { TransformEntry entry; - g_return_if_fail (G_TYPE_HAS_VALUE_TABLE (src_type)); - g_return_if_fail (G_TYPE_HAS_VALUE_TABLE (dest_type)); + /* these checks won't pass for dynamic types. + * g_return_if_fail (G_TYPE_HAS_VALUE_TABLE (src_type)); + * g_return_if_fail (G_TYPE_HAS_VALUE_TABLE (dest_type)); + */ g_return_if_fail (transform_func != NULL); entry.src_type = src_type;