aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_image_factory.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-05-17 14:16:50 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-05-17 15:32:04 +0900
commitafbdaf514a911ab0d3afb8880c4c67f62334f885 (patch)
treee75e3db1fbcaee4af394ca21eb4b512e8db84db2 /src/lib/elementary/efl_ui_image_factory.c
parentevas map: Fix uninitialized fields (diff)
downloadefl-afbdaf514a911ab0d3afb8880c4c67f62334f885.tar.gz
efl model: Fix invalid type in EO
Efl.Canvas refers to a canvas, like Evas or Window. Efl.Gfx is the base visual object type in libefl.so
Diffstat (limited to 'src/lib/elementary/efl_ui_image_factory.c')
-rw-r--r--src/lib/elementary/efl_ui_image_factory.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_image_factory.c b/src/lib/elementary/efl_ui_image_factory.c
index a07d0e4f67..c2a87c4546 100644
--- a/src/lib/elementary/efl_ui_image_factory.c
+++ b/src/lib/elementary/efl_ui_image_factory.c
@@ -32,12 +32,14 @@ _efl_ui_image_factory_efl_object_destructor(Eo *obj EINA_UNUSED, Efl_Ui_Image_Fa
efl_destructor(efl_super(obj, MY_CLASS));
}
-EOLIAN static Efl_Canvas *
-_efl_ui_image_factory_efl_ui_factory_create(Eo *obj EINA_UNUSED, Efl_Ui_Image_Factory_Data *pd, Efl_Model *model, Efl_Canvas *parent)
+EOLIAN static Efl_Gfx *
+_efl_ui_image_factory_efl_ui_factory_create(Eo *obj EINA_UNUSED, Efl_Ui_Image_Factory_Data *pd, Efl_Model *model, Efl_Gfx *parent)
{
+ Efl_Gfx *ui_view;
+
EINA_SAFETY_ON_NULL_RETURN_VAL(pd->property, NULL);
EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
- Efl_Canvas *ui_view = efl_add(EFL_UI_IMAGE_CLASS, parent);
+ ui_view = efl_add(EFL_UI_IMAGE_CLASS, parent);
efl_ui_view_model_set(ui_view, model);
efl_ui_model_connect(ui_view, "filename", pd->property);
@@ -45,7 +47,7 @@ _efl_ui_image_factory_efl_ui_factory_create(Eo *obj EINA_UNUSED, Efl_Ui_Image_Fa
}
EOLIAN static void
-_efl_ui_image_factory_efl_ui_factory_release(Eo *obj EINA_UNUSED, Efl_Ui_Image_Factory_Data *pd EINA_UNUSED, Efl_Canvas *ui_view)
+_efl_ui_image_factory_efl_ui_factory_release(Eo *obj EINA_UNUSED, Efl_Ui_Image_Factory_Data *pd EINA_UNUSED, Efl_Gfx *ui_view)
{
efl_parent_set(ui_view, NULL);
}