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



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 `GLib.Object' to `Clutter.Actor?'

reading the documentation I have not found any obvious solution for
that. 

Any help would be appreciated.

Thanks,


-- 
tomw <tomw ubilix com>




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