From c9208871aea6d2ba9c75c4dca01f476f606ceb19 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 20 Apr 2016 12:53:36 -0400 Subject: [PATCH] elm_cnp: attempt to get all applicable mime types when getting selection @fix --- src/lib/elementary/elm_cnp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/elm_cnp.c b/src/lib/elementary/elm_cnp.c index e62912a..6142086 100644 --- a/src/lib/elementary/elm_cnp.c +++ b/src/lib/elementary/elm_cnp.c @@ -2505,7 +2505,7 @@ _wl_elm_cnp_selection_get(const Evas_Object *obj, Elm_Sel_Type selection, Elm_Se (selection == ELM_SEL_TYPE_SECONDARY)) { const char *types[10] = {0, }; - int i = -1; + int i = -1, j; if ((format & ELM_SEL_FORMAT_MARKUP) || (format & ELM_SEL_FORMAT_TEXT)) @@ -2523,7 +2523,9 @@ _wl_elm_cnp_selection_get(const Evas_Object *obj, Elm_Sel_Type selection, Elm_Se if (i < 0) return EINA_FALSE; - ecore_wl2_dnd_selection_get(ecore_wl2_window_input_get(win), *types); + for (j = 0; j <= i; j++) + if (ecore_wl2_dnd_selection_get(ecore_wl2_window_input_get(win), types[j])) + break; } return EINA_TRUE; -- 2.7.4