forked from enlightenment/efl
test_check: deleted useless code.
Summary: in this test sample, evas object size hint weight, align set API doesn't need to make view. and line changed to code consistency. Test Plan: 1. run elementary_test. 2. execution check test. 3. window resize. - some objects align to left side of window. in the other hands, some objects align to center of window. Reviewers: seoz, Hermet Differential Revision: https://phab.enlightenment.org/D1781
This commit is contained in:
parent
a5c8af0493
commit
a5de98c5f6
|
@ -39,8 +39,6 @@ test_check(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
|
|||
elm_image_file_set(ic, buf, NULL);
|
||||
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
|
||||
ck = elm_check_add(win);
|
||||
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(ck, EVAS_HINT_FILL, 0.5);
|
||||
elm_object_text_set(ck, "Icon sized to check");
|
||||
elm_object_part_content_set(ck, "icon", ic);
|
||||
elm_check_state_set(ck, EINA_TRUE);
|
||||
|
@ -85,8 +83,6 @@ test_check(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
|
|||
elm_image_file_set(ic, buf, NULL);
|
||||
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
|
||||
ck = elm_check_add(win);
|
||||
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(ck, EVAS_HINT_FILL, 0.5);
|
||||
elm_object_text_set(ck, "Disabled check");
|
||||
elm_object_part_content_set(ck, "icon", ic);
|
||||
elm_check_state_set(ck, EINA_TRUE);
|
||||
|
@ -96,12 +92,10 @@ test_check(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
|
|||
evas_object_show(ic);
|
||||
|
||||
ck = elm_check_add(win);
|
||||
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(ck, EVAS_HINT_FILL, 0.5);
|
||||
elm_box_pack_end(bx, ck);
|
||||
elm_object_disabled_set(ck, EINA_TRUE);
|
||||
evas_object_show(ck);
|
||||
|
||||
|
||||
ic = elm_icon_add(win);
|
||||
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
|
||||
elm_image_file_set(ic, buf, NULL);
|
||||
|
@ -136,8 +130,6 @@ test_check_toggle(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev
|
|||
|
||||
tg = elm_check_add(win);
|
||||
elm_object_style_set(tg, "toggle");
|
||||
evas_object_size_hint_weight_set(tg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(tg, EVAS_HINT_FILL, 0.5);
|
||||
elm_object_text_set(tg, "Icon sized to toggle");
|
||||
elm_object_part_content_set(tg, "icon", ic);
|
||||
elm_check_state_set(tg, EINA_TRUE);
|
||||
|
|
Loading…
Reference in New Issue