forked from enlightenment/enlightenment
don't need to iterate on pager drop move cb
SVN revision: 80636
This commit is contained in:
parent
6e27f1ee5b
commit
1ecfd5bb0e
|
@ -2050,20 +2050,16 @@ _pager_inst_cb_scroll(void *data)
|
||||||
static void
|
static void
|
||||||
_pager_update_drop_position(Pager *p, Evas_Coord x, Evas_Coord y)
|
_pager_update_drop_position(Pager *p, Evas_Coord x, Evas_Coord y)
|
||||||
{
|
{
|
||||||
Pager_Desk *pd, *pd2;
|
Pager_Desk *pd;
|
||||||
Eina_List *l;
|
|
||||||
|
|
||||||
p->dnd_x = x;
|
p->dnd_x = x;
|
||||||
p->dnd_y = y;
|
p->dnd_y = y;
|
||||||
pd = _pager_desk_at_coord(p, x, y);
|
pd = _pager_desk_at_coord(p, x, y);
|
||||||
if (pd == p->active_drop_pd) return;
|
if (pd == p->active_drop_pd) return;
|
||||||
EINA_LIST_FOREACH(p->desks, l, pd2)
|
if (pd)
|
||||||
{
|
edje_object_signal_emit(pd->o_desk, "e,action,drag,in", "e");
|
||||||
if (pd == pd2)
|
if (p->active_drop_pd)
|
||||||
edje_object_signal_emit(pd2->o_desk, "e,action,drag,in", "e");
|
edje_object_signal_emit(p->active_drop_pd->o_desk, "e,action,drag,out", "e");
|
||||||
else if (pd2 == p->active_drop_pd)
|
|
||||||
edje_object_signal_emit(pd2->o_desk, "e,action,drag,out", "e");
|
|
||||||
}
|
|
||||||
p->active_drop_pd = pd;
|
p->active_drop_pd = pd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue