summaryrefslogtreecommitdiff
path: root/src/bin/widgets_list_2_grouped.c
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2013-01-23 15:05:24 +0000
committerYakov Goldberg <yakov.goldberg@gmail.com>2013-01-23 15:05:24 +0000
commitf473d6996b4cfe7973efa19116065c5bdacf0f41 (patch)
tree1c11c4826b6fb823c1b1b47f520e6ae807d5c804 /src/bin/widgets_list_2_grouped.c
parentfaf1579d35c232607a0bfa39b33a185071e843ed (diff)
adding if (obj) before eo_do(obj) to avoid Eo warning messages
"if (obj)" was added automatically before every "eo_do()" call. Later I removed this check from some places, so they are clean. Places, where check is still presenting, could either cause warning, or not. Signed-off-by: Yakov Goldberg <yakov.g@samsung.com> SVN revision: 83181
Diffstat (limited to 'src/bin/widgets_list_2_grouped.c')
-rw-r--r--src/bin/widgets_list_2_grouped.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/bin/widgets_list_2_grouped.c b/src/bin/widgets_list_2_grouped.c
index 4295721..11905c1 100644
--- a/src/bin/widgets_list_2_grouped.c
+++ b/src/bin/widgets_list_2_grouped.c
@@ -19,7 +19,7 @@ static int done = 0;
19static Evas_Object *o_images[NUM]; 19static Evas_Object *o_images[NUM];
20static Evas_Object *o_texts[NUM]; 20static Evas_Object *o_texts[NUM];
21 21
22static const char *labels[] = 22static const char *labels[] =
23{ 23{
24 "Andrew", 24 "Andrew",
25 "Alex", 25 "Alex",
@@ -27,27 +27,27 @@ static const char *labels[] =
27 "Arthur", 27 "Arthur",
28 "Astrid", 28 "Astrid",
29 "Avery", 29 "Avery",
30 30
31 "Beethoven", 31 "Beethoven",
32 "Billy", 32 "Billy",
33 "Bob", 33 "Bob",
34 "Bundy", 34 "Bundy",
35 35
36 "Candy", 36 "Candy",
37 "Carsten", 37 "Carsten",
38 38
39 "Danny", 39 "Danny",
40 "Dennis", 40 "Dennis",
41 "Dirk", 41 "Dirk",
42 "Doug", 42 "Doug",
43 43
44 "Edmond", 44 "Edmond",
45 "Erik", 45 "Erik",
46 46
47 "Fernando", 47 "Fernando",
48 "Frank", 48 "Frank",
49 "Frederick", 49 "Frederick",
50 50
51 "Gabby", 51 "Gabby",
52 "George", 52 "George",
53 "Gilroy", 53 "Gilroy",
@@ -62,13 +62,13 @@ static void _setup(void)
62 Evas_Object *o; 62 Evas_Object *o;
63 for (i = 0; i < NUM; i++) 63 for (i = 0; i < NUM; i++)
64 { 64 {
65 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas); 65 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
66 o_images[i] = o; 66 o_images[i] = o;
67 eo_do(o, evas_obj_image_filled_set(1), 67 eo_do(o, evas_obj_image_filled_set(1),
68 evas_obj_image_border_set(2, 2, 2, 2), 68 evas_obj_image_border_set(2, 2, 2, 2),
69 evas_obj_image_file_set(build_path("pan.png"), NULL), 69 evas_obj_image_file_set(build_path("pan.png"), NULL),
70 evas_obj_size_set(win_w, ICON_SIZE), 70 evas_obj_size_set(win_w, ICON_SIZE),
71 evas_obj_visibility_set(EINA_TRUE)); 71 evas_obj_visibility_set(EINA_TRUE));
72 72
73 o = eo_add(EVAS_OBJ_TEXT_CLASS, evas); 73 o = eo_add(EVAS_OBJ_TEXT_CLASS, evas);
74 o_texts[i] = o; 74 o_texts[i] = o;
@@ -105,10 +105,10 @@ static void _loop(double t, int f)
105 y = 0 - f; 105 y = 0 - f;
106 for (i = 0; i < NUM; i++) 106 for (i = 0; i < NUM; i++)
107 { 107 {
108 eo_do(o_images[i], evas_obj_position_set(x, y)); 108 eo_do(o_images[i], evas_obj_position_set(x, y));
109 eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); 109 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
110 cent = (ICON_SIZE - th) / 2; 110 cent = (ICON_SIZE - th) / 2;
111 eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent)); 111 eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent));
112 y += ICON_SIZE; 112 y += ICON_SIZE;
113 } 113 }
114 FPS_STD(NAME); 114 FPS_STD(NAME);