projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6340215
)
elm_cnp: support text plain mime type for _wl_elm_cnp_selection_get()
author
Taehyub Kim
<taehyub.kim@samsung.com>
Tue, 20 Dec 2016 06:20:27 +0000
(15:20 +0900)
committer
Wonki Kim
<wonki_.kim@samsung.com>
Mon, 2 Jan 2017 05:37:10 +0000
(14:37 +0900)
Change-Id: I7e2273bd1a74a660739a98fc31bc6fbe2e0a2ea5
src/lib/elm_cnp.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_cnp.c
b/src/lib/elm_cnp.c
index
f933253
..
42e8964
100644
(file)
--- a/
src/lib/elm_cnp.c
+++ b/
src/lib/elm_cnp.c
@@
-3114,12
+3114,15
@@
_wl_elm_cnp_selection_get(const Evas_Object *obj, Elm_Sel_Type selection, Elm_Se
const char *types[10] = {0, };
int i = -1;
- if ((format & ELM_SEL_FORMAT_MARKUP) ||
- (format & ELM_SEL_FORMAT_TEXT))
+ if (format & ELM_SEL_FORMAT_MARKUP)
{
types[++i] = "application/x-elementary-markup";
- types[++i] = "text/plain";
+ }
+
+ if (format & ELM_SEL_FORMAT_TEXT)
+ {
types[++i] = "text/plain;charset=utf-8";
+ types[++i] = "text/plain";
}
if (format & ELM_SEL_FORMAT_HTML)