huchi pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=709f3172c63737793db26396bb6d1095a331aa58
commit 709f3172c63737793db26396bb6d1095a331aa58 Author: Wonguk Jeong <[email protected]> Date: Sat Nov 29 15:39:57 2014 +0100 media: remove hotfix for dnd with media with space Previously, path was delivered without uri decoding. Now, since it is fixed by D1384 in elm_cnp, remove the hotfix. @fix --- src/bin/media.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/bin/media.c b/src/bin/media.c index 9d0a1b4..b401da0 100644 --- a/src/bin/media.c +++ b/src/bin/media.c @@ -1257,21 +1257,7 @@ media_add(Evas_Object *parent, const char *src, const Config *config, int mode, } #endif - if (!sd->url) - { - Efreet_Uri *uri; - const char *file_path = eina_stringshare_printf("file://%s", sd->src); - uri = efreet_uri_decode(file_path); - eina_stringshare_del(file_path); - if (!uri) - { - ERR("can not decode '%s'", sd->src); - goto err; - } - sd->realf = uri->path; - eina_stringshare_ref(sd->realf); - efreet_uri_free(uri); - } + if (!sd->url) sd->realf = eina_stringshare_add(sd->src); if ((mode & MEDIA_SIZE_MASK) == MEDIA_THUMB) { @@ -1311,11 +1297,6 @@ media_add(Evas_Object *parent, const char *src, const Config *config, int mode, _mouse_up_cb, obj); return obj; - -err: - if (obj) - evas_object_del(obj); - return NULL; } void --
