efl_destructor(efl_super(obj, MY_CLASS));
}
-static Eina_Value
-_efl_ui_image_factory_bind(Eo *obj EINA_UNUSED, void *data, const Eina_Value value)
+EOLIAN static void
+_efl_ui_image_factory_efl_ui_factory_building(const Eo *obj EINA_UNUSED, Efl_Ui_Image_Factory_Data *pd, Efl_Gfx_Entity *ui_view)
{
- Efl_Ui_Image_Factory_Data *pd = data;
- Efl_Gfx_Entity *entity;
- int len, i;
-
- EINA_VALUE_ARRAY_FOREACH(&value, len, i, entity)
- efl_ui_property_bind(entity, "filename", pd->property);
+ efl_ui_property_bind(ui_view, "filename", pd->property);
- return value;
+ efl_ui_factory_building(efl_super(obj, EFL_UI_IMAGE_FACTORY_CLASS), ui_view);
}
EOLIAN static Eina_Future *
_efl_ui_image_factory_efl_ui_factory_create(Eo *obj, Efl_Ui_Image_Factory_Data *pd,
Eina_Iterator *models, Efl_Gfx_Entity *parent)
{
- Eina_Future *f;
-
if (!parent) return efl_loop_future_rejected(obj, EFL_FACTORY_ERROR_NOT_SUPPORTED);
if (!pd->property) return efl_loop_future_rejected(obj, EFL_FACTORY_ERROR_NOT_SUPPORTED);
- f = efl_ui_factory_create(efl_super(obj, EFL_UI_IMAGE_FACTORY_CLASS), models, parent);
-
- return efl_future_then(obj, f,
- .success_type = EINA_VALUE_TYPE_ARRAY,
- .success = _efl_ui_image_factory_bind,
- .data = pd);
+ return efl_ui_factory_create(efl_super(obj, EFL_UI_IMAGE_FACTORY_CLASS), models, parent);
}
EOLIAN static Eina_Error