Re: g_value_type_transformable String to Enum fails
- From: Mike Massonnet <mmassonnet gmail com>
- To: GTK Applications <gtk-app-devel-list gnome org>
- Subject: Re: g_value_type_transformable String to Enum fails
- Date: Tue, 28 Sep 2010 21:20:47 +0200
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 <mmassonnet 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]