summaryrefslogtreecommitdiff
path: root/gobject/gvalue.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2003-02-17 20:17:17 +0000
committerTim Janik <timj@src.gnome.org>2003-02-17 20:17:17 +0000
commit5e6b9a3483fc3b317c407a835f903c2e5924d9ca (patch)
treed62e1fb73874eaad37f73ac987584a5604ab98d9 /gobject/gvalue.c
parent8e91cf9eb98da826abc1384418b5e9a4401048b8 (diff)
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.
Diffstat (limited to 'gobject/gvalue.c')
-rw-r--r--gobject/gvalue.c6
1 files changed, 4 insertions, 2 deletions
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;