mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 23:46:15 +01: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:
parent
8e91cf9eb9
commit
5e6b9a3483
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user