Revert "elm test: image align - use image align api instead"

This reverts commit 5a0db7cc67.

Reverting this since ab23a53094 breaks the old working behaviour
on image align. subsequent patch in efl.ui.image brings back the old
behaviour.

refer T4635
This commit is contained in:
Amitesh Singh 2017-07-06 15:49:27 +09:00
parent 5a0db7cc67
commit 7ef8672914
1 changed files with 3 additions and 4 deletions

View File

@ -81,6 +81,7 @@ test_image(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
evas_object_show(win);
}
static void
im_align_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
@ -92,10 +93,8 @@ im_align_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUS
h = elm_slider_value_get(h_sl);
v = elm_slider_value_get(v_sl);
efl_ui_image_align_set(im, h, v);
efl_ui_image_align_get(im, &h, &v);
evas_object_size_hint_align_set(im, h, v);
evas_object_size_hint_align_get(im, &h, &v);
printf("align %.3f %.3f\n", h, v);
}