elm_cnp: accept appropriate text types in wl drop handlers

this fixes text dnd

@fix
This commit is contained in:
Mike Blumenkrantz 2016-04-21 13:57:37 -04:00
parent f6f76bf87f
commit 8325b78aed
1 changed files with 13 additions and 4 deletions

View File

@ -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;
}
}
}