Revert "elm test: image align - use image align api instead"
authorAmitesh Singh <amitesh.sh@samsung.com>
Thu, 6 Jul 2017 06:49:27 +0000 (15:49 +0900)
committerAmitesh Singh <amitesh.sh@samsung.com>
Thu, 6 Jul 2017 09:34:38 +0000 (18:34 +0900)
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

index 31f840e..fd59a63 100644 (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);
 }