Re: GValue initialization with G_TYPE_BOXED
- From: Owen Taylor <otaylor redhat com>
- To: Jeff Franks <jcf tpg com au>
- Cc: gtk-devel-list gnome org
- Subject: Re: GValue initialization with G_TYPE_BOXED
- Date: Thu, 31 Jan 2002 12:50:20 -0500 (EST)
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]