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 important, it is out of curiosity.


Mike

2010/9/28 Mike Massonnet <mmasson...@gmail.com>:
> 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 <glib-object.h>
>
> int main (int argc, char *argv[])
> {
>        g_type_init ();
>        g_value_type_transformable (G_TYPE_STRING, G_TYPE_ENUM);
>        return 0;
> }
>
>
> --
> Mike
>



-- 
Mike
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to