diff options
author | Yakov Goldberg <yakov.g@samsung.com> | 2013-01-23 15:05:24 +0000 |
---|---|---|
committer | Yakov Goldberg <yakov.goldberg@gmail.com> | 2013-01-23 15:05:24 +0000 |
commit | f473d6996b4cfe7973efa19116065c5bdacf0f41 (patch) | |
tree | 1c11c4826b6fb823c1b1b47f520e6ae807d5c804 /src/bin/widgets_file_icons_2_same.c | |
parent | faf1579d35c232607a0bfa39b33a185071e843ed (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_file_icons_2_same.c')
-rw-r--r-- | src/bin/widgets_file_icons_2_same.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/widgets_file_icons_2_same.c b/src/bin/widgets_file_icons_2_same.c index cb2284d..e31054c 100644 --- a/src/bin/widgets_file_icons_2_same.c +++ b/src/bin/widgets_file_icons_2_same.c | |||
@@ -31,12 +31,12 @@ static void _setup(void) | |||
31 | Evas_Object *o; | 31 | Evas_Object *o; |
32 | for (i = 0; i < NUM; i++) | 32 | for (i = 0; i < NUM; i++) |
33 | { | 33 | { |
34 | o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas); | 34 | o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas); |
35 | o_images[i] = o; | 35 | o_images[i] = o; |
36 | eo_do(o, evas_obj_image_file_set(build_path(icons[i % 1]), NULL), | 36 | eo_do(o, evas_obj_image_file_set(build_path(icons[i % 1]), NULL), |
37 | evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE), | 37 | evas_obj_image_fill_set(0, 0, ICON_SIZE, ICON_SIZE), |
38 | evas_obj_size_set(ICON_SIZE, ICON_SIZE), | 38 | evas_obj_size_set(ICON_SIZE, ICON_SIZE), |
39 | evas_obj_visibility_set(EINA_TRUE)); | 39 | evas_obj_visibility_set(EINA_TRUE)); |
40 | 40 | ||
41 | o = eo_add(EVAS_OBJ_TEXT_CLASS, evas); | 41 | o = eo_add(EVAS_OBJ_TEXT_CLASS, evas); |
42 | o_texts[i] = o; | 42 | o_texts[i] = o; |
@@ -65,10 +65,10 @@ static void _loop(double t, int f) | |||
65 | y = 0 - f; | 65 | y = 0 - f; |
66 | for (i = 0; i < NUM; i++) | 66 | for (i = 0; i < NUM; i++) |
67 | { | 67 | { |
68 | eo_do(o_images[i], evas_obj_position_set(x + 8, y)); | 68 | eo_do(o_images[i], evas_obj_position_set(x + 8, y)); |
69 | eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); | 69 | eo_do(o_texts[i], evas_obj_size_get(&tw, &th)); |
70 | cent = (ICON_SIZE + 16 - tw) / 2; | 70 | cent = (ICON_SIZE + 16 - tw) / 2; |
71 | eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4)); | 71 | eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4)); |
72 | x += ICON_SIZE + 16; | 72 | x += ICON_SIZE + 16; |
73 | if (x > win_w) | 73 | if (x > win_w) |
74 | { | 74 | { |