From d44d4b5bcf45b48c40dbd0c2f8359fafd45cf0a4 Mon Sep 17 00:00:00 2001 From: Hyoyoung Chang Date: Fri, 8 Oct 2010 17:59:28 +0900 Subject: [PATCH] enable mark text - image copy feature --- src/xcnphandler.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xcnphandler.c b/src/xcnphandler.c index 93cf049..b3db943 100755 --- a/src/xcnphandler.c +++ b/src/xcnphandler.c @@ -210,7 +210,9 @@ int get_selection_content(void *data) // add_to_storage_buffer(ad, cbbuf, cbitems); // DTRACE("len = %ld, data = %s\n", cbitems, cbbuf); -/* + /* FIXME : it needs two verification. + 1. does the file exist? + 2. dose the file wanted type? */ if (!strncmp(unesc, "file://", 7) && (strstr(unesc,".png") || strstr(unesc,".jpg"))) { @@ -218,7 +220,6 @@ int get_selection_content(void *data) clipdrawer_add_image_item(unesc); } else -*/ add_to_storage_buffer(ad, unesc, strlen(unesc)); DTRACE("len = %ld, data = %s\n", strlen(unesc), unesc); free(unesc); -- 2.7.4