discomfitor pushed a commit to branch master.

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

commit c9208871aea6d2ba9c75c4dca01f476f606ceb19
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Apr 20 12:53:36 2016 -0400

    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;

-- 


Reply via email to