elm_dnd: complete the list of text types
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Sat, 11 Apr 2020 17:09:21 +0000 (19:09 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 15 Apr 2020 22:54:45 +0000 (07:54 +0900)
the text types added here were present as "TEXT" in selection manager,
so add them here again.

Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Differential Revision: https://phab.enlightenment.org/D11684

src/lib/elementary/elm_dnd.c

index 891fe4d..0dd5d68 100644 (file)
@@ -133,7 +133,11 @@ _format_to_mime_array(Elm_Sel_Format format)
    Eina_Array *ret = eina_array_new(10);
 
    if (format & ELM_SEL_FORMAT_TEXT)
-     eina_array_push(ret, "text/plain;charset=utf-8");
+     {
+        eina_array_push(ret, "text/plain");
+        eina_array_push(ret, "text/plain;charset=utf-8");
+        eina_array_push(ret, "text/uri-list");
+     }
    if (format & ELM_SEL_FORMAT_MARKUP)
      eina_array_push(ret, "application/x-elementary-markup");
    if (format & ELM_SEL_FORMAT_IMAGE)