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 <marcel-hollerbach@t-online.de>
Differential Revision: https://phab.enlightenment.org/D7781
This commit is contained in:
Mike Blumenkrantz 2019-01-25 09:12:41 -05:00 committed by Marcel Hollerbach
parent b42eeb4c95
commit d6992432c8
2 changed files with 7 additions and 1 deletions

View File

@ -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)

View File

@ -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; }