elm: cnp: Send plain text as well plain text.
authorBrett Nash <nash@nash.id.au>
Mon, 27 Sep 2010 06:19:12 +0000 (06:19 +0000)
committerBrett 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

index a59ba4ffce5d346f335f14bbf693a17ea2f7f703..4bed4dfa1331f90b0f4037fd8fef0ce72109ec74 100644 (file)
@@ -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));