zmike pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=cc6669c0d226965a84cb3c552ca24874c9c88dc5

commit cc6669c0d226965a84cb3c552ca24874c9c88dc5
Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Aug 20 09:11:12 2019 -0400

    efl_ui/popup: replace legacy image use with efl_ui_image
    
    Summary: new widgets should not use legacy widgets internally
    
    Reviewers: bu5hm4n
    
    Reviewed By: bu5hm4n
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D9590
---
 src/lib/elementary/efl_ui_popup.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/elementary/efl_ui_popup.c 
b/src/lib/elementary/efl_ui_popup.c
index 5cc54e56ca..72773f41b6 100644
--- a/src/lib/elementary/efl_ui_popup.c
+++ b/src/lib/elementary/efl_ui_popup.c
@@ -372,15 +372,15 @@ _efl_ui_popup_part_backwall_efl_file_load(Eo *obj, void 
*_pd EINA_UNUSED)
         efl_del(prev_obj);
      }
 
-   Eo *image = elm_image_add(pd->obj);
+   Eo *image = efl_add(EFL_UI_IMAGE_CLASS, pd->obj);
    Eina_Bool ret;
    const Eina_File *f;
 
    f = efl_file_mmap_get(obj);
    if (f)
-     ret = elm_image_mmap_set(image, f, efl_file_key_get(obj));
+     ret = efl_file_simple_mmap_load(image, f, efl_file_key_get(obj));
    else
-     ret = elm_image_file_set(image, efl_file_get(obj), efl_file_key_get(obj));
+     ret = efl_file_simple_load(image, efl_file_get(obj), 
efl_file_key_get(obj));
    if (!ret)
      {
         efl_del(image);

-- 


Reply via email to