g_value_type_transformable String to Enum fails



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]