summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichelle Legrand <legrand.michelle@outlook.com>2015-03-09 10:02:36 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-26 18:18:11 +0100
commite1431180e2f9d177ddfd93e3db147c3bb6fd051d (patch)
treef2e350d052c104791efcffb7a07fe099a69f26fa
parent37f02ee57c397d2713acadb5b49ed6fbf53ed59f (diff)
elm_genlist: use of elm_app_data_dir_get() instead of PACKAGE_DATA_DIR.
Summary: This allows to build binaries that will not look for the directory passed to the configure with --prefix at build but will look for data files according to where the exe has been installed. @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/bin/test_genlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index 3cce7ff9b..4cd90dbac 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -2656,7 +2656,7 @@ Evas_Object *gl15_content_get(void *data, Evas_Object *obj, const char *part)
2656 if (!strcmp(part, "elm.swallow.end")) 2656 if (!strcmp(part, "elm.swallow.end"))
2657 { 2657 {
2658 Evas_Object *ic = elm_icon_add(obj); 2658 Evas_Object *ic = elm_icon_add(obj);
2659 snprintf(buf, sizeof(buf), "%s/images/bubble.png", PACKAGE_DATA_DIR); 2659 snprintf(buf, sizeof(buf), "%s/images/bubble.png", elm_app_data_dir_get());
2660 elm_image_file_set(ic, buf, NULL); 2660 elm_image_file_set(ic, buf, NULL);
2661 evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1); 2661 evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
2662 return ic; 2662 return ic;
@@ -2673,7 +2673,7 @@ Evas_Object *gl15_content_get(void *data, Evas_Object *obj, const char *part)
2673 else if (!strcmp(part, "elm.edit.icon.2")) 2673 else if (!strcmp(part, "elm.edit.icon.2"))
2674 { 2674 {
2675 Evas_Object *icn = elm_icon_add(obj); 2675 Evas_Object *icn = elm_icon_add(obj);
2676 snprintf(buf, sizeof(buf), "%s/images/icon_06.png", PACKAGE_DATA_DIR); 2676 snprintf(buf, sizeof(buf), "%s/images/icon_06.png", elm_app_data_dir_get());
2677 elm_image_file_set(icn, buf, NULL); 2677 elm_image_file_set(icn, buf, NULL);
2678 evas_object_propagate_events_set(icn, EINA_FALSE); 2678 evas_object_propagate_events_set(icn, EINA_FALSE);
2679 evas_object_size_hint_aspect_set(icn, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1); 2679 evas_object_size_hint_aspect_set(icn, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
@@ -2827,7 +2827,7 @@ Evas_Object *gl16_content_get(void *data, Evas_Object *obj, const char *part)
2827 else if (!strcmp(part, "elm.edit.icon.1")) 2827 else if (!strcmp(part, "elm.edit.icon.1"))
2828 { 2828 {
2829 Evas_Object *icn = elm_icon_add(obj); 2829 Evas_Object *icn = elm_icon_add(obj);
2830 snprintf(buf, sizeof(buf), "%s/images/icon_04.png", PACKAGE_DATA_DIR); 2830 snprintf(buf, sizeof(buf), "%s/images/icon_04.png", elm_app_data_dir_get());
2831 elm_image_file_set(icn, buf, NULL); 2831 elm_image_file_set(icn, buf, NULL);
2832 evas_object_propagate_events_set(icn, EINA_FALSE); 2832 evas_object_propagate_events_set(icn, EINA_FALSE);
2833 evas_object_size_hint_aspect_set(icn, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1); 2833 evas_object_size_hint_aspect_set(icn, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
@@ -2836,7 +2836,7 @@ Evas_Object *gl16_content_get(void *data, Evas_Object *obj, const char *part)
2836 else if (!strcmp(part, "elm.edit.icon.2")) 2836 else if (!strcmp(part, "elm.edit.icon.2"))
2837 { 2837 {
2838 Evas_Object *icn = elm_icon_add(obj); 2838 Evas_Object *icn = elm_icon_add(obj);
2839 snprintf(buf, sizeof(buf), "%s/images/icon_09.png", PACKAGE_DATA_DIR); 2839 snprintf(buf, sizeof(buf), "%s/images/icon_09.png", elm_app_data_dir_get());
2840 elm_image_file_set(icn, buf, NULL); 2840 elm_image_file_set(icn, buf, NULL);
2841 evas_object_propagate_events_set(icn, EINA_FALSE); 2841 evas_object_propagate_events_set(icn, EINA_FALSE);
2842 evas_object_size_hint_aspect_set(icn, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1); 2842 evas_object_size_hint_aspect_set(icn, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);