diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2014-11-14 06:46:09 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2014-12-17 07:44:15 +0100 |
commit | a322d76949f2886438799e0efb4a1e6f9220ff80 (patch) | |
tree | b66cf966aada2b847bcd6bfe4ed69643c3c0d10f | |
parent | cec8432dec0a8446e7a18e9ec91abed863cc54ae (diff) | |
download | efl-a322d76949f2886438799e0efb4a1e6f9220ff80.tar.gz |
ector: create an image surface associated with the ector object.
-rw-r--r-- | src/lib/ector/ector_object.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/ector/ector_object.c b/src/lib/ector/ector_object.c index bc5d52aca8..05460a6541 100644 --- a/src/lib/ector/ector_object.c +++ b/src/lib/ector/ector_object.c @@ -22,6 +22,8 @@ #include <Ector.h> #include "ector_private.h" +#include "software/ector_surface_sw.eo.h" + #define MY_CLASS ECTOR_OBJECT_CLASS typedef struct _Ector_Object_Data Ector_Object_Data; @@ -51,6 +53,8 @@ _ector_object_eo_base_destructor(Eo *obj, Ector_Object_Data *pd) { eo_do_super(obj, MY_CLASS, eo_destructor()); eo_data_unref(obj, pd->base); + eo_del(pd->surface); + eo_del(pd->image); } void @@ -95,7 +99,9 @@ _ector_object_evas_object_smart_add(Eo *obj, Ector_Object_Data *pd) evas_object_clip_set(pd->image, pd->base->clipper); evas_object_show(pd->image); - // Choose the correct ector_surface depending on the engine + // FIXME: Choose the correct ector_surface depending on the engine + pd->surface = eo_add(ECTOR_SURFACE_SW_CLASS, obj, + ector_surface_sw_image_set(image)); evas_event_thaw(ev); } |