Re: libseed-list ConversionError



>From the manual about set_types..
Sets the types of the columns inside a ClutterModel. This function is meant primarily for GObjects that inherit from ClutterModel, and should only be used when contructing a ClutterModel. It will not work after the initial creation of the ClutterModel.

Although I'm not sure that's causing the problem

Looking at the gir, you might try
model.set_types([GObject.TYPE_INT, GObject.TYPE_PIXBUF]);

as the length argument may be generated from the length of the array. (need to check seed source to see if it's doing that.)

Looks like the newv constructor method has got the wrong hints at present, as it's creating the array as an out argument, rather than an array of types.

Regards
Alan

 --- On 05/Dec/2010, tomw wrote: 
> Hi, 
> 
> I recently started to use JS with seed for some Cutter application.
> It's really a great framework especially when using GObject
> introspection. Creating a Clutter.ListModel I ran into some issues which
> I could not resolve so far. The statement:
> 
> model.set_types(2, [GObject.TYPE_INT, GObject.TYPE_PIXBUF]);
> 
> return the following error: 
> 
> ConversionError Can not convert Javascript value to int
> 
> any idea?
> 
> Thanks.
> 
> _______________________________________________
> libseed-list mailing list
> libseed-list gnome org
> http://mail.gnome.org/mailman/listinfo/libseed-list



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