simplify pager dnd leave cb

SVN revision: 80654
This commit is contained in:
Mike Blumenkrantz 2012-12-11 12:48:49 +00:00
parent b577c7e900
commit fde12e4225
1 changed files with 4 additions and 13 deletions

View File

@ -2099,22 +2099,13 @@ _pager_drop_cb_move(void *data, const char *type __UNUSED__, void *event_info)
static void
_pager_drop_cb_leave(void *data, const char *type __UNUSED__, void *event_info __UNUSED__)
{
Pager *p;
Pager_Desk *pd;
Eina_List *l;
p = data;
Pager *p = data;
if (act_popup) p = act_popup->pager;
EINA_LIST_FOREACH(p->desks, l, pd)
{
if (pd == p->active_drop_pd)
{
edje_object_signal_emit(pd->o_desk, "e,action,drag,out", "e");
p->active_drop_pd = NULL;
}
}
if (p->active_drop_pd)
edje_object_signal_emit(p->active_drop_pd->o_desk, "e,action,drag,out", "e");
p->active_drop_pd = NULL;
if (p->inst) e_gadcon_client_autoscroll_cb_set(p->inst->gcc, NULL, NULL);
}