forked from enlightenment/efl
parent
9d23590313
commit
f7d02aee00
|
@ -31,6 +31,7 @@ enum {
|
||||||
CNP_ATOM_text_uri,
|
CNP_ATOM_text_uri,
|
||||||
CNP_ATOM_text_urilist,
|
CNP_ATOM_text_urilist,
|
||||||
CNP_ATOM_image_png,
|
CNP_ATOM_image_png,
|
||||||
|
CNP_ATOM_image_jpeg,
|
||||||
CNP_ATOM_XELM,
|
CNP_ATOM_XELM,
|
||||||
CNP_ATOM_text_html_utf8,
|
CNP_ATOM_text_html_utf8,
|
||||||
CNP_ATOM_text_html,
|
CNP_ATOM_text_html,
|
||||||
|
@ -177,6 +178,14 @@ static struct {
|
||||||
notify_handler_png,
|
notify_handler_png,
|
||||||
0
|
0
|
||||||
},
|
},
|
||||||
|
[CNP_ATOM_image_jpeg] = {
|
||||||
|
"image/jpeg",
|
||||||
|
ELM_SEL_FORMAT_MARKUP | ELM_SEL_FORMAT_IMAGE,
|
||||||
|
png_converter,
|
||||||
|
NULL,
|
||||||
|
notify_handler_png,/* Raw image data is the same */
|
||||||
|
0
|
||||||
|
},
|
||||||
[CNP_ATOM_text_html_utf8] = {
|
[CNP_ATOM_text_html_utf8] = {
|
||||||
"text/html;charset=utf-8",
|
"text/html;charset=utf-8",
|
||||||
ELM_SEL_FORMAT_MARKUP,
|
ELM_SEL_FORMAT_MARKUP,
|
||||||
|
@ -708,7 +717,7 @@ notify_handler_png(struct _elm_cnp_selection *sel __UNUSED__,
|
||||||
int fd,len;
|
int fd,len;
|
||||||
void *map;
|
void *map;
|
||||||
|
|
||||||
cnp_debug("got a png!\n");
|
cnp_debug("got a png (or a jpeg)!\n");
|
||||||
data = notify->data;
|
data = notify->data;
|
||||||
|
|
||||||
cnp_debug("Size if %d\n",data->length);
|
cnp_debug("Size if %d\n",data->length);
|
||||||
|
|
Loading…
Reference in New Issue