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:
Tim Janik 2003-02-17 20:17:17 +00:00 committed by Tim Janik
parent 8e91cf9eb9
commit 5e6b9a3483
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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.
Sun Feb 9 13:44:01 2003 Soeren Sandmann <sandmann@daimi.au.dk> Sun Feb 9 13:44:01 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gboxed.c (boxed_proxy_value_init): remove lookup of unused * gboxed.c (boxed_proxy_value_init): remove lookup of unused

View File

@ -277,8 +277,10 @@ g_value_register_transform_func (GType src_type,
{ {
TransformEntry entry; TransformEntry entry;
g_return_if_fail (G_TYPE_HAS_VALUE_TABLE (src_type)); /* these checks won't pass for dynamic types.
g_return_if_fail (G_TYPE_HAS_VALUE_TABLE (dest_type)); * 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); g_return_if_fail (transform_func != NULL);
entry.src_type = src_type; entry.src_type = src_type;