[Vala] How to convert GObject into Clutter.Actor types?

2011-09-12 Thread tomw
Hi, reading ClutterActors from a .json file with: var obj = script.get_object(object); returns a GObject which results in an error message if I want to process the assumed ClutterActors any further, like adding them to the stage: stage.add_actor(obj); Assignment: Cannot convert from

Re: [Vala] How to convert GObject into Clutter.Actor types?

2011-09-12 Thread Andrea Bolognani
On Mon, Sep 12, 2011 at 06:03:34PM +0200, tomw wrote: Hi, reading ClutterActors from a .json file with: var obj = script.get_object(object); returns a GObject which results in an error message if I want to process the assumed ClutterActors any further. Try with var obj =

Re: [Vala] How to convert GObject into Clutter.Actor types?

2011-09-12 Thread tomw
... I thought it must be something simple :-) Thanks On Mo, 2011-09-12 at 18:08 +0200, Andrea Bolognani wrote: Try with var obj = script.get_object(object) as Clutter.Actor; ___ vala-list mailing list vala-list@gnome.org