Remove usage of ClutterLayoutManager easing API
It is going away.
This commit is contained in:
@ -193,9 +193,6 @@ multi_layout_allocate (ClutterLayoutManager *manager,
|
||||
int n_items, n_items_per_row = 0, item_index;
|
||||
ClutterPoint center = CLUTTER_POINT_INIT_ZERO;
|
||||
double radius = 0, theta = 0;
|
||||
gboolean use_animations;
|
||||
ClutterAnimationMode easing_mode;
|
||||
guint easing_duration, easing_delay;
|
||||
|
||||
n_items = get_visible_children (CLUTTER_ACTOR (container));
|
||||
if (n_items == 0)
|
||||
@ -224,11 +221,6 @@ multi_layout_allocate (ClutterLayoutManager *manager,
|
||||
(avail_height - self->cell_height) / 2.0);
|
||||
}
|
||||
|
||||
use_animations = clutter_layout_manager_get_easing_state (manager,
|
||||
&easing_mode,
|
||||
&easing_duration,
|
||||
&easing_delay);
|
||||
|
||||
clutter_actor_iter_init (&iter, CLUTTER_ACTOR (container));
|
||||
while (clutter_actor_iter_next (&iter, &child))
|
||||
{
|
||||
@ -262,19 +254,8 @@ multi_layout_allocate (ClutterLayoutManager *manager,
|
||||
child_allocation.y2 = child_allocation.y1 + self->cell_height;
|
||||
}
|
||||
|
||||
if (use_animations)
|
||||
{
|
||||
clutter_actor_save_easing_state (child);
|
||||
clutter_actor_set_easing_mode (child, easing_mode);
|
||||
clutter_actor_set_easing_duration (child, easing_duration);
|
||||
clutter_actor_set_easing_delay (child, easing_delay);
|
||||
}
|
||||
|
||||
clutter_actor_allocate (child, &child_allocation, flags);
|
||||
|
||||
if (use_animations)
|
||||
clutter_actor_restore_easing_state (child);
|
||||
|
||||
item_index += 1;
|
||||
}
|
||||
}
|
||||
@ -404,7 +385,6 @@ main (int argc, char *argv[])
|
||||
|
||||
manager = multi_layout_new ();
|
||||
multi_layout_set_spacing ((MultiLayout *) manager, PADDING);
|
||||
clutter_layout_manager_set_use_animations (manager, TRUE);
|
||||
|
||||
margin.top = margin.bottom = margin.left = margin.right = PADDING;
|
||||
|
||||
@ -431,6 +411,8 @@ main (int argc, char *argv[])
|
||||
clutter_actor_set_pivot_point (rect, .5f, .5f);
|
||||
clutter_actor_set_background_color (rect, &color);
|
||||
clutter_actor_set_reactive (rect, TRUE);
|
||||
clutter_actor_set_easing_duration (rect, 250);
|
||||
clutter_actor_set_easing_mode (rect, CLUTTER_EASE_OUT_CUBIC);
|
||||
clutter_actor_add_child (box, rect);
|
||||
|
||||
g_signal_connect (rect, "enter-event", G_CALLBACK (on_enter), NULL);
|
||||
|
Reference in New Issue
Block a user