[cnp_helper] add bmp format type
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Tue, 9 Nov 2010 04:31:55 +0000 (04:31 +0000)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Tue, 9 Nov 2010 04:31:55 +0000 (04:31 +0000)
src/lib/elm_cnp_helper.c

index 3620a22..1af9aa5 100644 (file)
@@ -715,9 +715,9 @@ notify_handler_uri(struct _elm_cnp_selection *sel,
    else
       p += strlen("file://");
 
-   if ((!strstr(p,".png")) && (!strstr(p,".jpg")))
+   if ((!strcasestr(p,".png")) && (!strcasestr(p,".jpg")) && (!strcasestr(p,".bmp")))
      {
-        cnp_debug("No png, ignoring\n");
+        cnp_debug("No image(png, jpg and bmp), ignoring\n");
         if (savedtypes.textreq) savedtypes.textreq = 0;
         return 0;
      }