bu5hm4n pushed a commit to branch master.

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

commit d6992432c8fe54135a7acc780c6e0cd8cf70400a
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Jan 25 09:12:41 2019 -0500

    efl_ui_image: implement efl.file.mmap_get
    
    this returns the current file, though the result is that the "current file"
    could be changed asynchronously after this function is called
    
    ref T5719
    
    Reviewed-by: Marcel Hollerbach <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D7781
---
 src/lib/elementary/efl_ui_image.c  | 6 ++++++
 src/lib/elementary/efl_ui_image.eo | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_image.c 
b/src/lib/elementary/efl_ui_image.c
index b28688fbbf..ff2a7cb6ef 100644
--- a/src/lib/elementary/efl_ui_image.c
+++ b/src/lib/elementary/efl_ui_image.c
@@ -887,6 +887,12 @@ _efl_ui_image_efl_file_mmap_set(Eo *obj, Efl_Ui_Image_Data 
*sd,
    return ret;
 }
 
+EOLIAN void
+_efl_ui_image_efl_file_mmap_get(const Eo *obj EINA_UNUSED, Efl_Ui_Image_Data 
*sd, const Eina_File **file, const char **group)
+{
+   if (sd->img) efl_file_mmap_get(sd->img, file, group);
+}
+
 static Eina_Bool
 _efl_ui_image_smart_internal_file_set(Eo *obj, Efl_Ui_Image_Data *sd,
                                    const char *file, const Eina_File *f, const 
char *key)
diff --git a/src/lib/elementary/efl_ui_image.eo 
b/src/lib/elementary/efl_ui_image.eo
index 38f3d45251..47e37a77c1 100644
--- a/src/lib/elementary/efl_ui_image.eo
+++ b/src/lib/elementary/efl_ui_image.eo
@@ -90,7 +90,7 @@ class Efl.Ui.Image extends Efl.Ui.Widget implements 
Efl.Ui.Clickable, Efl.Ui.Dra
    implements {
       Efl.Object.constructor;
       Efl.File.file { get; set; }
-      Efl.File.mmap { set; }
+      Efl.File.mmap { get; set; }
       Efl.Gfx.Color.color { set; }
       Efl.Gfx.Entity.visible { set; }
       Efl.Gfx.Entity.position { set; }

-- 


Reply via email to