Re: param spec value type



On 14 Dec 2000, Havoc Pennington wrote:

> 
> Hi,
> 
> gtk_object_add_arg_type() registers boxed args with
> g_param_spec_boxed() which has value_type GBoxed - however GBoxed has
> no value table so g_object_set() crashes when it calls g_value_init()
> to set the boxed argument.

You mean for GTK_TYPE_BOXED?  Use of that typecode doesn't really make
sense.  GTK_TYPE_BOXED is sort of an abstract type -- you should be using
subtypes of GTK_TYPE_BOXED, rather than BOXED itself.

James.





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