forked from enlightenment/efl
selection_manager: Convert to new animators
Summary: Use more efficient animator mechanism. Depends on D7041 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7042
This commit is contained in:
parent
4dc1e8273d
commit
899f208733
|
@ -1350,7 +1350,7 @@ _x11_drag_mouse_up(void *data, int etype EINA_UNUSED, void *event)
|
||||||
if (!seat_sel->accept)
|
if (!seat_sel->accept)
|
||||||
{ /* Commit animation when drag cancelled */
|
{ /* Commit animation when drag cancelled */
|
||||||
/* Record final position of dragwin, then do animation */
|
/* Record final position of dragwin, then do animation */
|
||||||
ecore_animator_timeline_add(0.3,
|
ecore_evas_animator_timeline_add(seat_sel->drag_win, 0.3,
|
||||||
_drag_cancel_animate, seat_sel);
|
_drag_cancel_animate, seat_sel);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -2748,7 +2748,7 @@ _wl_dnd_end(void *data, int type EINA_UNUSED, void *event)
|
||||||
{
|
{
|
||||||
/* Commit animation when drag cancelled */
|
/* Commit animation when drag cancelled */
|
||||||
/* Record final position of dragwin, then do animation */
|
/* Record final position of dragwin, then do animation */
|
||||||
ecore_animator_timeline_add(0.3, _drag_cancel_animate, seat_sel);
|
ecore_evas_animator_timeline_add(seat_sel->drag_win, 0.3, _drag_cancel_animate, seat_sel);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -4493,7 +4493,7 @@ _drag_anim_start(Sel_Manager_Drag_Container *dc)
|
||||||
evas_object_del(final_icon);
|
evas_object_del(final_icon);
|
||||||
evas_object_del(temp_win);
|
evas_object_del(temp_win);
|
||||||
}
|
}
|
||||||
dc->animator = ecore_animator_timeline_add(dc->anim_duration, _drag_anim_play, dc);
|
dc->animator = ecore_evas_animator_timeline_add(dc->e, dc->anim_duration, _drag_anim_play, dc);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
|
|
Loading…
Reference in New Issue