add file:// prefix
authorJisung Ahn <jcastle.ahn@samsung.com>
Fri, 24 Aug 2012 08:57:16 +0000 (17:57 +0900)
committerJisung Ahn <jcastle.ahn@samsung.com>
Fri, 24 Aug 2012 08:57:16 +0000 (17:57 +0900)
Change-Id: I622b9ccec3b13a92d2706eb30a13473d7a63f46d

main/src/view/ivug-main-view-menu.cpp

index 6326801..9deedb9 100755 (executable)
@@ -649,12 +649,15 @@ void on_btn_share_clicked(void *data, Evas_Object *obj, void *event_info)
        popup = ivug_listpopup_add(pMainView->layout);
 
        evas_object_smart_callback_add(popup, "popup,dismissed", _dismissed_cb, pMainView);
-       evas_object_smart_callback_add(popup, "popup,selected", _on_share_selected, pMainView);
+       evas_object_smart_callback_add(popup, "popup,selected", _on_share_selected, pMainView);\r
+\r
+       char path[IVUG_MAX_FILE_PATH_LEN] = {0,};\r
+       snprintf(path, IVUG_MAX_FILE_PATH_LEN, "file://%s", mdata->filepath);\r
 
        service_h service;
        service_create(&service);
        service_set_operation(service, SERVICE_OPERATION_SEND);
-       service_set_uri(service, mdata->filepath);
+       service_set_uri(service, path);\r
        service_foreach_app_matched(service, _share_pkg_cb, (void *)popup);
 
        const Elm_Object_Item *item = pMainView->items[TOOLBUTTON_SHARE].item;