Well, ok, seems like a reference counting problem.  I can get the timeline
to run now.

On Tue, Mar 23, 2010 at 4:29 PM, Uday Verma <[email protected]> wrote:

> Ok, to tackle this problem I wrote a new behaviour class to change the
> allocation from one actorbox to another.  If it works, I think it will work
> out for me.  However, I am having some trouble starting the timeline to do
> so.  The source code is here (also attached):
>
> Function which creates and executes a timeline: http://pastie.org/883636
> The behaviour class: http://pastie.org/883619
> valac generated C code: http://pastie.org/883629
>
> The problem is that the timeline is created and everything, and the started
> signal is fired too, but beyond that neither do I get the new-frame signal
> nor is my behaviour::alpha_notify called.  The completed signal is not
> called too.
>
> I wonder what's going on.  Any ideas?
>
> Thanks,
> Uday
>
> On Tue, Mar 23, 2010 at 2:00 PM, Uday Verma <[email protected]> wrote:
>
>> Hello all,
>>
>> I am trying to animate a sub-actor inside a ClutterActor but I can't seem
>> to be able to do so.
>>
>> I have an actor A which contains several Bs, A is not a container but a
>> regular actor.  I have a add method which adds B to A, and in the process
>> does B.set_parent (A).
>>
>> 1.  When I do so, right after the parenting operation I set the position
>> and dimensions of B.  The position and dimension requests are not being
>> regarded and according to --clutter-flags=paint, the allocation of actor B
>> is {0,0,0,0}.  I wonder why that is when I am explicitly setting the size
>> and position.  The only way I could get the actor B to appear was by
>> explicitly setting the allocation of actor B to the desired location.
>>
>> 2.  Then, in one of the other methods I try to animate the "x" property,
>> but it doesn't do anything, the actor stays where it was set by the
>> allocation,  the reason for which I couldn't understand either.
>>
>> Is there anything I am missing?  How can I go about creating composite
>> actors where sub-actors can move around etc.?
>>
>> Thanks,
>> Uday
>>
>>
>

Reply via email to