mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
don't assert the types passed in to have value tables. this prevents
Mon Feb 17 20:59:47 2003 Tim Janik <timj@gtk.org> * 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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user