projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46666de
)
elm_cnp: attempt to get all applicable mime types when getting selection
author
Mike Blumenkrantz
<zmike@osg.samsung.com>
Wed, 20 Apr 2016 16:53:36 +0000
(12:53 -0400)
committer
Mike Blumenkrantz
<zmike@osg.samsung.com>
Thu, 21 Apr 2016 17:58:45 +0000
(13:58 -0400)
@fix
src/lib/elementary/elm_cnp.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/elm_cnp.c
b/src/lib/elementary/elm_cnp.c
index
e62912a
..
6142086
100644
(file)
--- 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;