summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-02-05 01:23:22 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-02-05 01:23:22 +0900
commit4c0f5b0ff6f4d9253989a08d299859456b2d3e22 (patch)
tree0c64aa14c92c94833d5382413b5626d3a368510e
parent9dc3a2829676dab8026a7ca172614521aeaf1cc9 (diff)
test_button: Removed evas_object_show() calls for icon from test code.
Summary: Icon is an internal object of button. There is no need to call evas_object_show() for icon widget. Reviewers: seoz Differential Revision: https://phab.enlightenment.org/D517
-rw-r--r--src/bin/test_button.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/bin/test_button.c b/src/bin/test_button.c
index 1da2cb2f0..b7e4288d7 100644
--- a/src/bin/test_button.c
+++ b/src/bin/test_button.c
@@ -78,7 +78,6 @@ test_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
78 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)1); 78 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)1);
79 elm_box_pack_end(bx, bt); 79 elm_box_pack_end(bx, bt);
80 evas_object_show(bt); 80 evas_object_show(bt);
81 evas_object_show(ic);
82 81
83 ic = elm_icon_add(bx); 82 ic = elm_icon_add(bx);
84 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get()); 83 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
@@ -91,7 +90,6 @@ test_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
91 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)2); 90 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)2);
92 elm_box_pack_end(bx, bt); 91 elm_box_pack_end(bx, bt);
93 evas_object_show(bt); 92 evas_object_show(bt);
94 evas_object_show(ic);
95 93
96 ic = elm_icon_add(win); 94 ic = elm_icon_add(win);
97 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get()); 95 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
@@ -105,7 +103,6 @@ test_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
105 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)3); 103 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)3);
106 elm_box_pack_end(bx, bt); 104 elm_box_pack_end(bx, bt);
107 evas_object_show(bt); 105 evas_object_show(bt);
108 evas_object_show(ic);
109 106
110 ic = elm_icon_add(win); 107 ic = elm_icon_add(win);
111 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get()); 108 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
@@ -118,7 +115,6 @@ test_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
118 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)4); 115 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)4);
119 elm_box_pack_end(bx, bt); 116 elm_box_pack_end(bx, bt);
120 evas_object_show(bt); 117 evas_object_show(bt);
121 evas_object_show(ic);
122 118
123 bt = elm_button_add(win); 119 bt = elm_button_add(win);
124 elm_object_text_set(bt, "Label Only"); 120 elm_object_text_set(bt, "Label Only");
@@ -142,7 +138,6 @@ test_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
142 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)6); 138 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)6);
143 elm_box_pack_end(bx, bt); 139 elm_box_pack_end(bx, bt);
144 evas_object_show(bt); 140 evas_object_show(bt);
145 evas_object_show(ic);
146 141
147 bt = elm_button_add(win); 142 bt = elm_button_add(win);
148 elm_object_style_set(bt, "anchor"); 143 elm_object_style_set(bt, "anchor");
@@ -164,7 +159,6 @@ test_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
164 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)8); 159 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)8);
165 elm_box_pack_end(bx, bt); 160 elm_box_pack_end(bx, bt);
166 evas_object_show(bt); 161 evas_object_show(bt);
167 evas_object_show(ic);
168 162
169 ic = elm_icon_add(bx); 163 ic = elm_icon_add(bx);
170 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get()); 164 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
@@ -178,7 +172,6 @@ test_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
178 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)9); 172 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)9);
179 elm_box_pack_end(bx, bt); 173 elm_box_pack_end(bx, bt);
180 evas_object_show(bt); 174 evas_object_show(bt);
181 evas_object_show(ic);
182 175
183 ic = elm_icon_add(win); 176 ic = elm_icon_add(win);
184 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get()); 177 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
@@ -191,7 +184,6 @@ test_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
191 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)10); 184 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)10);
192 elm_box_pack_end(bx, bt); 185 elm_box_pack_end(bx, bt);
193 evas_object_show(bt); 186 evas_object_show(bt);
194 evas_object_show(ic);
195 187
196 ic = elm_icon_add(win); 188 ic = elm_icon_add(win);
197 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get()); 189 snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
@@ -207,7 +199,6 @@ test_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
207 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)11); 199 evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)11);
208 elm_box_pack_end(bx, bt); 200 elm_box_pack_end(bx, bt);
209 evas_object_show(bt); 201 evas_object_show(bt);
210 evas_object_show(ic);
211 202
212 evas_object_resize(win, 320, 480); 203 evas_object_resize(win, 320, 480);
213 evas_object_show(win); 204 evas_object_show(win);