If you use variables to pass these values to clutter_actor_animate and
if any of these variables is of incorrect type, the function just
segfaults.

gint angle = 360;   // instead of a double
clutter_actor_animate (myactor, CLUTTER_EASE_IN, 100,
"rotation-angle-z", x, NULL); // will segfault

--

On Thu, Aug 13, 2009 at 3:50 AM, Samuel Degrande<[email protected]> wrote:
> On 13/08/2009 01:41, Ian Walberg wrote:
>>
>> Neil,
>>
>> Thanks that helps.
>>
>> However I am getting this following error :-
>>
>> 'Cannot bind property '' objects of type 'ClutterTexture' do not have
>> this property'
>>
>> When I try the rotation example :-
>>
>> clutter_actor_animate (actor, CLUTTER_EASE_IN, 100,
>>                          "rotation-angle-z", 360,
>>                          "fixed::rotation-center-z",&center,
>>                          NULL);
>> Thanks
>>
>> Ian
>>
>
> I was caught by such an error several times !!
>
> You have to take care to provide the right type of values.
> So you need, for example
>
> clutter_actor_animate (actor, CLUTTER_EASE_IN, 100,
>                           "rotation-angle-z", 360.0,
>                           "fixed::rotation-center-z",&center,
>                           NULL);
>
> This is rather very annoying, because we are so used to implicit
> type conversion...
>
> --
> Samuel Degrande           LIFL - UMR8022 CNRS - INRIA Futurs - Bat M3
> Phone: (33)3.28.77.85.30  USTL - Universite de Lille 1
>       (33)3.62.53.15.70  59655 VILLENEUVE D'ASCQ CEDEX - FRANCE
> [CA certs: http://igc.services.cnrs.fr/CNRS-Standard/recherche.html ]
> --
> To unsubscribe send a mail to [email protected]
>
>



-- 
Uday
http://soundc.de/
--
To unsubscribe send a mail to [email protected]

Reply via email to