discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8325b78aed0ad42f9399108d337db37d2bd188bc

commit 8325b78aed0ad42f9399108d337db37d2bd188bc
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Apr 21 13:57:37 2016 -0400

    elm_cnp: accept appropriate text types in wl drop handlers
    
    this fixes text dnd
    
    @fix
---
 src/lib/elementary/elm_cnp.c | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/lib/elementary/elm_cnp.c b/src/lib/elementary/elm_cnp.c
index 2c33633..848febe 100644
--- a/src/lib/elementary/elm_cnp.c
+++ b/src/lib/elementary/elm_cnp.c
@@ -3421,14 +3421,23 @@ _wl_drops_accept(const char *type)
                    break;
                 case ELM_SEL_FORMAT_NONE:
                    break;
-                case ELM_SEL_FORMAT_TEXT:
-                   break;
                 case ELM_SEL_FORMAT_MARKUP:
-                   break;
+                case ELM_SEL_FORMAT_TEXT:
+                  if (eina_streq(type, "application/x-elementary-markup") ||
+                      eina_streq(type, "text/plain") ||
+                      eina_streq(type, "text/plain;charset=utf-8") ||
+                      eina_streq(type, "UTF8_STRING") ||
+                      eina_streq(type, "STRING") ||
+                      eina_streq(type, "TEXT"))
+                    return EINA_TRUE;
+                  break;
                 case ELM_SEL_FORMAT_VCARD:
                    break;
                 case ELM_SEL_FORMAT_HTML:
-                   break;
+                  if (eina_streq(type, "text/html") ||
+                      eina_streq(type, "text/html;charset=utf-8"))
+                    return EINA_TRUE;
+                  break;
                }
           }
      }

-- 


Reply via email to