GValue initialization with G_TYPE_BOXED



 Hi,

When I try to initiailize this GValue

GValue  value = { 0, };
g_value_init(&value, G_TYPE_BOXED);

I get the following error message at runtime:

GLib-GObject-WARNING **: gvalue.c:88:g_value_init(): cannot initialize GValue with type `GBoxed', this type has no GTypeValueTable implementation.

Do you have to initialize the GValue with the actual boxed type, such as GDK_TYPE_COLOR.

Jeff





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