summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-01-29 21:42:36 +0100
committerCedric BAIL <cedric@osg.samsung.com>2016-02-02 10:47:25 -0800
commit1ec244a09ef2e3fd89169c2a376387eafed1a84d (patch)
tree43c4450e8e95265bb77c9328e1d710fe5a5f223c
parent2cdead3e71b37b81638a4672e06a6abc6c33e1b6 (diff)
downloadefl-1ec244a09ef2e3fd89169c2a376387eafed1a84d.tar.gz
evas: no need to call legacy function internally when we can just dereference some pointers.
-rw-r--r--src/lib/evas/canvas/evas_object_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/evas/canvas/evas_object_main.c b/src/lib/evas/canvas/evas_object_main.c
index 3c986a7fbf..21a180cad3 100644
--- a/src/lib/evas/canvas/evas_object_main.c
+++ b/src/lib/evas/canvas/evas_object_main.c
@@ -113,10 +113,10 @@ _check_event_catcher_add(void *data,
{
if (obj->animator_ref++ > 0) break;
- eo_do(evas_object_evas_get(obj->object),
+ eo_do(obj->layer->evas->evas,
eo_event_callback_add(EFL_CORE_ANIMATOR_EVENT_ANIMATOR_TICK, _animator_repeater, obj));
INF("Registering an animator tick on canvas %p for object %p.",
- evas_object_evas_get(obj->object), obj->object);
+ obj->layer->evas->evas, obj->object);
// No need to walk more than once per array as you can not del
// a partial array
@@ -143,10 +143,10 @@ _check_event_catcher_del(void *data,
{
if ((--obj->animator_ref) > 0) break;
- eo_do(evas_object_evas_get(obj->object),
+ eo_do(obj->layer->evas->evas,
eo_event_callback_del(EFL_CORE_ANIMATOR_EVENT_ANIMATOR_TICK, _animator_repeater, obj));
INF("Unregistering an animator tick on canvas %p for object %p.",
- evas_object_evas_get(obj->object), obj->object);
+ obj->layer->evas->evas, obj->object);
break;
}