whoops, forgot to add in the xds check for dnd yesterday to make it actually work

SVN revision: 76494
This commit is contained in:
Mike Blumenkrantz 2012-09-12 07:08:44 +00:00
parent b0e87e2c8c
commit cfca3d8897
1 changed files with 7 additions and 3 deletions

View File

@ -1229,12 +1229,16 @@ _e_dnd_cb_event_dnd_enter(void *data __UNUSED__, int type __UNUSED__, void *even
}
for (i = 0; i < ev->num_types; i++)
{
const char *t = NULL;
/* FIXME: Maybe we want to get something else then files dropped? */
if ((_type_text_uri_list == ev->types[i]) ||
(!strcmp(_type_text_uri_list, ev->types[i]))) /* not sure it is stringshared */
if (!strcmp(_type_text_uri_list, ev->types[i]))
t = eina_stringshare_ref(_type_text_uri_list);
else if (!strcmp(_type_xds, ev->types[i]))
t = eina_stringshare_ref(_type_xds);
if (t)
{
_xdnd = E_NEW(XDnd, 1);
_xdnd->type = eina_stringshare_ref(_type_text_uri_list);
_xdnd->type = t;
EINA_LIST_FOREACH(_drop_handlers, l, h)
{
h->active = 0;