summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_part_bg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/elementary/test_part_bg.c')
-rw-r--r--src/bin/elementary/test_part_bg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/elementary/test_part_bg.c b/src/bin/elementary/test_part_bg.c
index 37e39da..2724870 100644
--- a/src/bin/elementary/test_part_bg.c
+++ b/src/bin/elementary/test_part_bg.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6#define MAX_NUM_OF_CONTENT 18 7#define MAX_NUM_OF_CONTENT 18
@@ -18,7 +19,7 @@ _reset_cb(void *data, const Efl_Event *ev EINA_UNUSED)
18 target = evas_object_data_get(radio, "data"); 19 target = evas_object_data_get(radio, "data");
19 20
20 efl_gfx_color_set(efl_part(target, "background"), 0, 0, 0, 0); 21 efl_gfx_color_set(efl_part(target, "background"), 0, 0, 0, 0);
21 efl_file_set(efl_part(target, "background"), NULL, NULL); 22 efl_file_simple_load(efl_part(target, "background"), NULL, NULL);
22} 23}
23 24
24static void 25static void
@@ -46,7 +47,7 @@ _scale_type_cb(void *data, const Efl_Event *ev EINA_UNUSED)
46 target = evas_object_data_get(radio, "data"); 47 target = evas_object_data_get(radio, "data");
47 48
48 snprintf(buf, sizeof(buf), "%s/images/plant_01.jpg", elm_app_data_dir_get()); 49 snprintf(buf, sizeof(buf), "%s/images/plant_01.jpg", elm_app_data_dir_get());
49 efl_file_set(efl_part(target, "background"), buf, NULL); 50 efl_file_simple_load(efl_part(target, "background"), buf, NULL);
50 type = efl_gfx_image_scale_type_get(efl_part(target, "background")); 51 type = efl_gfx_image_scale_type_get(efl_part(target, "background"));
51 type = (type + 1) % 5; 52 type = (type + 1) % 5;
52 efl_gfx_image_scale_type_set(efl_part(target, "background"), type); 53 efl_gfx_image_scale_type_set(efl_part(target, "background"), type);
@@ -103,7 +104,7 @@ _create_box_contents(Evas_Object *box)
103 if (efl_isa(content, EFL_UI_IMAGE_CLASS)) 104 if (efl_isa(content, EFL_UI_IMAGE_CLASS))
104 { 105 {
105 snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get()); 106 snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get());
106 efl_file_set(content, buf, NULL); 107 efl_file_simple_load(content, buf, NULL);
107 } 108 }
108 109
109 evas_object_data_set(radio, "data", content); 110 evas_object_data_set(radio, "data", content);