grid-layout: Remove layout animations

ClutterLayoutManager implementations should just defer the easing state
set up to the child, and not try to impose a global one.
This commit is contained in:
Emmanuele Bassi 2012-07-11 13:11:13 +01:00
parent 5a1c16de62
commit 2fef1a174e

View File

@ -1388,9 +1388,6 @@ clutter_grid_layout_allocate (ClutterLayoutManager *layout,
ClutterGridLines *lines;
ClutterActorIter iter;
ClutterActor *child;
gboolean use_animations;
ClutterAnimationMode mode;
guint duration, delay;
request.grid = self;
@ -1411,11 +1408,6 @@ clutter_grid_layout_allocate (ClutterLayoutManager *layout,
clutter_grid_request_position (&request, 0);
clutter_grid_request_position (&request, 1);
use_animations = clutter_layout_manager_get_easing_state (layout,
&mode,
&duration,
&delay);
clutter_actor_iter_init (&iter, CLUTTER_ACTOR (container));
while (clutter_actor_iter_next (&iter, &child))
{
@ -1440,18 +1432,7 @@ clutter_grid_layout_allocate (ClutterLayoutManager *layout,
_clutter_actor_get_debug_name (child),
x, y, width, height);
if (use_animations)
{
clutter_actor_save_easing_state (child);
clutter_actor_set_easing_mode (child, mode);
clutter_actor_set_easing_duration (child, duration);
clutter_actor_set_easing_delay (child, delay);
}
clutter_actor_allocate (child, &child_allocation, flags);
if (use_animations)
clutter_actor_restore_easing_state (child);
}
}