Re: g_value_type_transformable String to Enum fails

2010-09-28 Thread Mike Massonnet
I took the snippet a lil' further. If I use a custom implemented enum type and use its get_type function instead of GEnum's it works fine. But since I wished to use the transform function with a generic enum type I had logically prefer to use GEnumType and not a custom one. Nothing of this is impo

g_value_type_transformable String to Enum fails

2010-09-28 Thread Mike Massonnet
Hi, By compiling the following code snippet, at execution it prints a critical message. Is this a bug or just normal? (process:1545): GLib-GObject-CRITICAL **: g_value_type_transformable: assertion `G_TYPE_IS_VALUE (dest_type)' failed // cc `pkg-config --cflags --libs gobject-2.0` #include int