From cfca3d8897a83c2df4236cc5bb42f3a288847d03 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 12 Sep 2012 07:08:44 +0000 Subject: [PATCH] whoops, forgot to add in the xds check for dnd yesterday to make it actually work SVN revision: 76494 --- src/bin/e_dnd.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/bin/e_dnd.c b/src/bin/e_dnd.c index 41d995e8c..ae9d82ffb 100644 --- a/src/bin/e_dnd.c +++ b/src/bin/e_dnd.c @@ -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;