summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-14 01:23:54 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-14 01:23:54 +0000
commitd1a31e4c875d2a6f3f39483bbd39c2e2fbe8cda1 (patch)
tree6e148744ac5df5bbc571bb991a18b4e2fddfa795
parentc3fdd57d5edbd8fe301440fe0bee207ecac751a2 (diff)
fix ethumb test
crazy stuff in there... ouch :-/ SVN revision: 82739
-rw-r--r--src/bin/test_thumb.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/bin/test_thumb.c b/src/bin/test_thumb.c
index 5a6c04a0a..1f81847c3 100644
--- a/src/bin/test_thumb.c
+++ b/src/bin/test_thumb.c
@@ -7,9 +7,9 @@ void
7test_thumb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 7test_thumb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
8{ 8{
9 Evas_Object *win, *sc, *tb, *th; 9 Evas_Object *win, *sc, *tb, *th;
10 int i, j, n; 10 int i, j;
11 char buf[PATH_MAX]; 11 char buf[PATH_MAX];
12 const char *img[11] = 12 const char *img[] =
13 { 13 {
14 "panel_01.jpg", 14 "panel_01.jpg",
15 "plant_01.jpg", 15 "plant_01.jpg",
@@ -32,16 +32,14 @@ test_thumb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
32 tb = elm_table_add(win); 32 tb = elm_table_add(win);
33 evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 33 evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
34 34
35 n = 0; 35 for (j = 0; j < (int)EINA_C_ARRAY_LENGTH(img); j++)
36 for (j = 0; j < 12; j++)
37 { 36 {
38 for (i = 0; i < 12; i++) 37 for (i = 0; i < (int)EINA_C_ARRAY_LENGTH(img); i++)
39 { 38 {
40 th = elm_thumb_add(win); 39 th = elm_thumb_add(win);
41 snprintf(buf, sizeof(buf), "%s/images/%s", elm_app_data_dir_get(), 40 snprintf(buf, sizeof(buf), "%s/images/%s", elm_app_data_dir_get(),
42 img[n]); 41 img[i]);
43 n = (n + 1) % 11; 42 elm_thumb_file_set(th, buf, NULL);
44 elm_thumb_file_set(th, buf, img[n]);
45 evas_object_size_hint_weight_set(th, EVAS_HINT_EXPAND, 43 evas_object_size_hint_weight_set(th, EVAS_HINT_EXPAND,
46 EVAS_HINT_EXPAND); 44 EVAS_HINT_EXPAND);
47 evas_object_size_hint_align_set(th, EVAS_HINT_FILL, 45 evas_object_size_hint_align_set(th, EVAS_HINT_FILL,