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:
4d82324
)
elm: cnp: Send plain text as well plain text.
author
Brett Nash
<nash@nash.id.au>
Mon, 27 Sep 2010 06:19:12 +0000
(06:19 +0000)
committer
Brett Nash
<nash@nash.id.au>
Mon, 27 Sep 2010 06:19:12 +0000
(06:19 +0000)
SVN revision: 52799
src/lib/elm_cnp_helper.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_cnp_helper.c
b/src/lib/elm_cnp_helper.c
index a59ba4ffce5d346f335f14bbf693a17ea2f7f703..4bed4dfa1331f90b0f4037fd8fef0ce72109ec74 100644
(file)
--- a/
src/lib/elm_cnp_helper.c
+++ b/
src/lib/elm_cnp_helper.c
@@
-881,6
+881,9
@@
text_converter(char *target __UNUSED__, void *data, int size __UNUSED__,
if (sel->format == ELM_SEL_FORMAT_MARKUP){
*data_ret = remove_tags(sel->selbuf, size_ret);
+ } else if (sel->format == ELM_SEL_FORMAT_TEXT){
+ *data_ret = strdup(sel->selbuf);
+ *size_ret = strlen(sel->selbuf);
} else if (sel->format == ELM_SEL_FORMAT_IMAGE){
cnp_debug("Image %s\n",evas_object_type_get(sel->widget));
cnp_debug("Elm type: %s\n",elm_object_widget_type_get(sel->widget));