[clutter] cluttermm get_scale behaving strangely

2009-06-05 Thread Bartosz Kostrzewa
Hi everyone,

I have a simple UI which relies in its logic on calling get_scale to
control an animation but I've noticed that while an actor is being
animated via calling set_scale in a *new_frame signal handler, get_scale
keeps returning 1.0 until about half a second after the timeline
animating the set_scale operation has finished. (specifically I'm
scaling textures to the shortest stage dimension when they are clicked
and back to their original dimensions when they are clicked again, the
second step relying on get_scale returning a result bigger than 1.0)

Is this expected behaviour? Is there something I can do to guarantee
that the value of set_scale is propagated so that get_scale returns the
correct one?

Thanks.

-Bartek
-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com



Re: [clutter] cluttermm get_scale behaving strangely

2009-06-05 Thread Bartosz Kostrzewa
Bartosz Kostrzewa wrote:
 animated via calling set_scale in a *new_frame signal handler, get_scale
 keeps returning 1.0 until about half a second after the timeline
 animating the set_scale operation has finished. 

apologies for replying to my own post but it's not even as regular as
that. In effect what happens is that during the animation, get_scale
returns the correct instantaneous value (output in the new_frame
handler), however, once the animation is complete, for some reason the
returned values are sometimes correct, and sometimes 1.0...

could it be that get_scale relies on the whole texture being inside the
stage boundaries?

-Bartek
-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com



Re: [clutter] cluttermm get_scale behaving strangely

2009-06-05 Thread Bartosz Kostrzewa
Bartosz Kostrzewa wrote:
 Is this expected behaviour? Is there something I can do to guarantee
 that the value of set_scale is propagated so that get_scale returns the
 correct one?

Ok, disregard this, the problem was that clicking triggered the
animation of an underlying texture which was completely hidden from
view, thus it seemed as though something fishy was going on while that
was not the case.

Seems like I need to adjust the z position as well as the scale to be safe.

-Bartek
-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com