elm_image: Use Efl.File interface for mmap_set
This commit is contained in:
parent
3e7aff9501
commit
4a0202b40d
|
@ -843,8 +843,9 @@ elm_image_file_set(Evas_Object *obj,
|
|||
|
||||
ELM_IMAGE_CHECK(obj) EINA_FALSE;
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(file, EINA_FALSE);
|
||||
eo_do(obj, ret = efl_file_set(file, group));
|
||||
eo_do(obj, elm_obj_image_sizing_eval());
|
||||
eo_do(obj,
|
||||
ret = efl_file_set(file, group);
|
||||
elm_obj_image_sizing_eval());
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -862,10 +863,22 @@ elm_image_mmap_set(Evas_Object *obj,
|
|||
Eina_Bool ret = EINA_FALSE;
|
||||
|
||||
ELM_IMAGE_CHECK(obj) EINA_FALSE;
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(file, EINA_FALSE);
|
||||
eo_do(obj, ret = efl_file_mmap_set(file, group));
|
||||
return ret;
|
||||
}
|
||||
|
||||
EOLIAN Eina_Bool
|
||||
_elm_image_efl_file_mmap_set(Eo *obj, Elm_Image_Data *pd EINA_UNUSED,
|
||||
const Eina_File *file, const char *key)
|
||||
{
|
||||
Eina_Bool ret = EINA_FALSE;
|
||||
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(file, EINA_FALSE);
|
||||
eo_do(obj,
|
||||
ret = elm_obj_image_mmap_set(file, group),
|
||||
ret = elm_obj_image_mmap_set(file, key),
|
||||
elm_obj_image_sizing_eval());
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -538,6 +538,7 @@ class Elm_Image (Elm_Widget, Efl.File, Efl.Image, Evas.Clickable_Interface,
|
|||
Eo.Base.constructor;
|
||||
Efl.File.file.set;
|
||||
Efl.File.file.get;
|
||||
Efl.File.mmap.set;
|
||||
Efl.File.async.set;
|
||||
Efl.File.async.get;
|
||||
Efl.File.async_wait;
|
||||
|
|
Loading…
Reference in New Issue