Re: GValue initialization with G_TYPE_BOXED



Jeff Franks <jcf tpg com au> writes:

>   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.

Yes.
                                        Owen



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