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



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 = script.get_object("object") as Clutter.Actor;

-- 
Andrea Bolognani <eof kiyuko org>
Resistance is futile, you will be garbage collected.

Attachment: signature.asc
Description: Digital signature



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