From 7ef8672914ac8b361bc23ba0b77234182d329caf Mon Sep 17 00:00:00 2001 From: Amitesh Singh Date: Thu, 6 Jul 2017 15:49:27 +0900 Subject: [PATCH] Revert "elm test: image align - use image align api instead" This reverts commit 5a0db7cc679c5d2d6888b457f7d13a36ebd0a100. Reverting this since ab23a5309490d breaks the old working behaviour on image align. subsequent patch in efl.ui.image brings back the old behaviour. refer T4635 --- src/bin/elementary/test_image.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bin/elementary/test_image.c b/src/bin/elementary/test_image.c index 31f840e..fd59a63 100644 --- a/src/bin/elementary/test_image.c +++ b/src/bin/elementary/test_image.c @@ -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); } -- 2.7.4