summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/list.c8
-rw-r--r--src/share_panel.c2
-rw-r--r--src/utils.c13
3 files changed, 18 insertions, 5 deletions
diff --git a/src/list.c b/src/list.c
index ae53102..d9d5deb 100644
--- a/src/list.c
+++ b/src/list.c
@@ -137,7 +137,7 @@ static void __intersect_match_list_with_mime(Eina_List **matchlist, const char *
bool exist;
app_control_create(&control);
- app_control_set_operation(control, TIZEN_MULTI_SHARE);
+ app_control_set_operation(control, APP_CONTROL_OPERATION_MULTI_SHARE);
app_control_set_mime(control, mime);
app_control_set_uri(control, uri);
app_control_foreach_app_matched(control, __app_control_file_matched_cb, &sublist);
@@ -356,11 +356,11 @@ Eina_List *_list_create(share_panel_h share_panel)
__trim_uri(share_panel->control);
- if (!strcmp(operation_type, TIZEN_SHARE)
- || !strcmp(operation_type, TIZEN_SHARE_TEXT)) {
+ if (!strcmp(operation_type, APP_CONTROL_OPERATION_SHARE)
+ || !strcmp(operation_type, APP_CONTROL_OPERATION_SHARE_TEXT)) {
_D("single share operation");
__create_single_share_list(share_panel->control, &matchlist);
- } else if (!strcmp(operation_type, TIZEN_MULTI_SHARE)) {
+ } else if (!strcmp(operation_type, APP_CONTROL_OPERATION_MULTI_SHARE)) {
_D("multi share operation");
__create_multi_share_list(share_panel->control, &matchlist);
} else {
diff --git a/src/share_panel.c b/src/share_panel.c
index ac7aa12..a4ff383 100644
--- a/src/share_panel.c
+++ b/src/share_panel.c
@@ -297,7 +297,7 @@ static void _language_changed(app_event_info_h event_info, void *data)
}
-int main(int argc, char **argv)
+EAPI int main(int argc, char **argv)
{
int ret;
ui_app_lifecycle_callback_s lifecycle_callback = {0, };
diff --git a/src/utils.c b/src/utils.c
index e1a810a..48cae7e 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -24,6 +24,18 @@
char *utils_get_res_file_path(char *sub_path)
{
+/* Fix for support for global and user installation
+ * In case of global installation resoureces should be fetched from
+ * predefined directory
+ *
+ * In case of multi-user installation resources shoudl be fetched using
+ * app_get_resource_path API.
+ */
+#ifdef INSTALL_RESDIR
+ char buf[1024];
+ snprintf(buf, sizeof(buf), "%s/%s", INSTALL_RESDIR, sub_path);
+ return strdup(buf);
+#else
char *res_path = app_get_resource_path();
if(!res_path)
return NULL;
@@ -41,4 +53,5 @@ char *utils_get_res_file_path(char *sub_path)
free(res_path);
return absolute_path;
+#endif
}