return obj;
}
+EOLIAN static void
+_elm_photo_efl_file_file_get(const Eo *obj EINA_UNUSED, Elm_Photo_Data *sd, const char **file, const char **key EINA_UNUSED)
+{
+ efl_file_get(sd->icon, file, NULL);
+}
+
EOLIAN static Eina_Bool
_elm_photo_efl_file_file_set(Eo *obj, Elm_Photo_Data *sd, const char *file, const char *key EINA_UNUSED)
{
return EINA_TRUE;
}
+EOLIAN static void
+_elm_photo_efl_file_mmap_get(const Eo *obj EINA_UNUSED, Elm_Photo_Data *sd, const Eina_File **file, const char **key EINA_UNUSED)
+{
+ efl_file_mmap_get(sd->icon, file, key);
+}
+
+EOLIAN static Eina_Bool
+_elm_photo_efl_file_mmap_set(Eo *obj, Elm_Photo_Data *sd, const Eina_File *file, const char *key EINA_UNUSED)
+{
+ if (!file)
+ {
+ if (!elm_icon_standard_set(sd->icon, "no_photo")) return EINA_FALSE;
+ }
+ else
+ {
+ if (!efl_file_mmap_set(sd->icon, file, NULL)) return EINA_FALSE;
+ }
+
+ _sizing_eval(obj);
+
+ return EINA_TRUE;
+}
+
static void
_elm_photo_class_constructor(Efl_Class *klass)
{
implements {
class.constructor;
Efl.Object.constructor;
- Efl.File.file { set; }
+ Efl.File.file { set; get; }
+ Efl.File.mmap { set; get; }
Efl.Ui.Widget.theme_apply;
Efl.Ui.Draggable.drag_target { get; set; }
}