summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJisung Ahn <jcastle.ahn@samsung.com>2012-08-24 08:57:16 (GMT)
committerJisung Ahn <jcastle.ahn@samsung.com>2012-08-24 08:57:16 (GMT)
commite2febc354a045d32d6b5b026c16d047afaa9485d (patch)
treea00da33b3032f5ba8b89dc033ead9cbcee51882e
parent67fe0ebbcd88616e6f7f673861c3ba82ff3e81d5 (diff)
downloadug-image-viewer-efl-e2febc354a045d32d6b5b026c16d047afaa9485d.zip
ug-image-viewer-efl-e2febc354a045d32d6b5b026c16d047afaa9485d.tar.gz
ug-image-viewer-efl-e2febc354a045d32d6b5b026c16d047afaa9485d.tar.bz2
add file:// prefix
Change-Id: I622b9ccec3b13a92d2706eb30a13473d7a63f46d
-rwxr-xr-xmain/src/view/ivug-main-view-menu.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/src/view/ivug-main-view-menu.cpp b/main/src/view/ivug-main-view-menu.cpp
index 6326801..9deedb9 100755
--- a/main/src/view/ivug-main-view-menu.cpp
+++ b/main/src/view/ivug-main-view-menu.cpp
@@ -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);
+
+ char path[IVUG_MAX_FILE_PATH_LEN] = {0,};
+ snprintf(path, IVUG_MAX_FILE_PATH_LEN, "file://%s", mdata->filepath);
service_h service;
service_create(&service);
service_set_operation(service, SERVICE_OPERATION_SEND);
- service_set_uri(service, mdata->filepath);
+ service_set_uri(service, path);
service_foreach_app_matched(service, _share_pkg_cb, (void *)popup);
const Elm_Object_Item *item = pMainView->items[TOOLBUTTON_SHARE].item;