Elementary: Load image for image item with proper orientation
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 18 Aug 2016 11:09:16 +0000 (14:09 +0300)
committerDaniel Hirt <daniel.hirt@samsung.com>
Thu, 18 Aug 2016 11:09:16 +0000 (14:09 +0300)
Summary:
Image files can have orientation information. Elm Entry have to
call evas_object_image_load_orientation_set() for showing image
with proper orientation.

Test Plan: N/A

Reviewers: herdsman, raster, jpeg

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D4244

src/lib/elementary/elm_entry.c

index 66e7eaa..3e64cce 100644 (file)
@@ -2729,6 +2729,7 @@ _item_get(void *data,
         const char *fname = item + 7;
 
         o = evas_object_image_filled_add(evas_object_evas_get(data));
+        evas_object_image_load_orientation_set(o, EINA_TRUE);
         evas_object_image_file_set(o, fname, NULL);
         if (evas_object_image_load_error_get(o) == EVAS_LOAD_ERROR_NONE)
           {