rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=a4e5467b6a41f00023c4aa0b7945bdd3616b7ffa

commit a4e5467b6a41f00023c4aa0b7945bdd3616b7ffa
Author: Vyacheslav Reutskiy <[email protected]>
Date:   Thu Feb 2 17:39:52 2017 +0200

    image_manager: fix wrong API usage
    
    I think this was a copy/past mistake. The image preview is elm_image,
    but the images in the grid are thumnails.
    So for preview need use elm_image* for image in grid elm_thumb APIs
    
    @fix
    
    Change-Id: Id0886efb078fb4b764b3d0cf5ef67be087796a96
---
 src/bin/ui/image_manager.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bin/ui/image_manager.c b/src/bin/ui/image_manager.c
index 88b1103..d42bce4 100644
--- a/src/bin/ui/image_manager.c
+++ b/src/bin/ui/image_manager.c
@@ -136,13 +136,13 @@ _image_manager_image_setup(Evas_Object *image,
    if (it->comp_type == EDJE_EDIT_IMAGE_COMP_USER)
      {
         if (ecore_file_exists(it->source))
-          elm_thumb_file_set(image, it->source, NULL);
+          elm_image_file_set(image, it->source, NULL);
         else
-          elm_thumb_file_set(image, ap.path.theme_edj, 
"elm/image/icon/attention");
+          elm_image_file_set(image, ap.path.theme_edj, 
"elm/image/icon/attention");
      }
    else
      {
-        elm_thumb_file_set(image, it->source, NULL);
+        elm_image_file_set(image, it->source, NULL);
      }
 #else
    TODO("Remove this urgly hack when we fix thumbs on Windows")

-- 


Reply via email to