aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src/lib/canvas/evas_callbacks.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2010-08-29 22:59:11 +0000
committerCarsten Haitzler <raster@rasterman.com>2010-08-29 22:59:11 +0000
commitf3faf1730b67e657db36318d7f1913b6cac76108 (patch)
treefcb2f3482376852db1d67c6953160ea110acb026 /legacy/evas/src/lib/canvas/evas_callbacks.c
parentwhitespaces-- (diff)
downloadefl-f3faf1730b67e657db36318d7f1913b6cac76108.tar.gz
can optimise this a bit and avoid magic checks as its internal.
SVN revision: 51735
Diffstat (limited to 'legacy/evas/src/lib/canvas/evas_callbacks.c')
-rw-r--r--legacy/evas/src/lib/canvas/evas_callbacks.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_callbacks.c b/legacy/evas/src/lib/canvas/evas_callbacks.c
index c4aabfa65b..2bdb0aab45 100644
--- a/legacy/evas/src/lib/canvas/evas_callbacks.c
+++ b/legacy/evas/src/lib/canvas/evas_callbacks.c
@@ -165,12 +165,10 @@ evas_object_event_callback_call(Evas_Object *obj, Evas_Callback_Type type, void
Evas_Button_Flags flags = EVAS_BUTTON_NONE;
Evas *e;
+ if ((obj->delete_me) || (!obj->layer)) return;
if (obj->last_event == _evas_event_counter) return;
-
obj->last_event = _evas_event_counter;
-
- if (obj->delete_me) return;
- e = evas_object_evas_get(obj);
+ if (!(e = obj->layer->evas)) return;
_evas_walk(e);
if (obj->callbacks)